Use a more robust way to check if the shell is ready

pull/1886/head^2
Junegunn Choi 4 years ago
parent 9f0626da64
commit 2ff7db1b36
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -175,7 +175,7 @@ class Tmux
tries = 0
begin
self.until do |lines|
send_keys 'C-u', 'hello'
send_keys ' ', 'C-u', 'hello', :Left, :Right
lines[-1].end_with?('hello')
end
rescue StandardError

Loading…
Cancel
Save