mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-23 10:21:15 +01:00
Only wait a max of 2 seconds for content to match after clearing screen
This commit is contained in:
parent
06fca77ffb
commit
c959408305
1 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,12 @@ class TerminalSession
|
|||
|
||||
def clear_screen
|
||||
send_keys('C-l')
|
||||
sleep(0.1) until content == ''
|
||||
|
||||
i = 0
|
||||
until content == opts[:prompt] || i > 20 do
|
||||
sleep(0.1)
|
||||
i = i + 1
|
||||
end
|
||||
|
||||
self
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue