mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
Fix #4782
Presumably the failure is caused by zsh not having finished drawing the prompt when the cursor shape is changed. So instead wait till the expected prompt is drawn. There are probably more places where this change needs to be made, which I cant tell since I cant reproduce.
This commit is contained in:
@@ -107,7 +107,7 @@ RPS1="{rps1}"
|
||||
pty.wait_till(lambda: pty.screen.cursor.shape == CURSOR_BEAM)
|
||||
except TimeoutError as e:
|
||||
raise AssertionError(f'Cursor was not changed to beam. Screen contents: {repr(pty.screen_contents())}') from e
|
||||
self.ae(pty.screen_contents(), q)
|
||||
pty.wait_till(lambda: pty.screen_contents() == q)
|
||||
self.ae(pty.callbacks.titlebuf[-1], '~')
|
||||
pty.callbacks.clear()
|
||||
pty.send_cmd_to_child('mkdir test && ls -a')
|
||||
|
||||
Reference in New Issue
Block a user