m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00

Migrate to GitHub Actions

This commit is contained in:
Junegunn Choi
2021-01-13 10:52:15 +09:00
parent c6115735c7
commit e922704f72
5 changed files with 96 additions and 37 deletions

View File

@@ -148,14 +148,15 @@ class Tmux
def prepare
tries = 0
begin
self.until do |lines|
send_keys ' ', 'C-u', :Enter, 'hello', :Left, :Right
lines[-1] == 'hello'
self.until(true) do |lines|
message = "Prepare[#{tries}]"
send_keys ' ', 'C-u', :Enter, message, :Left, :Right
lines[-1] == message
end
rescue Minitest::Assertion
(tries += 1) < 5 ? retry : raise
end
send_keys 'C-u'
send_keys 'C-u', 'C-l'
end
private