diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-11-17 19:13:37 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-11-17 19:13:37 +0900 |
commit | 29e67d307a051c2ec544f530869e25d36a0050f3 (patch) | |
tree | 5a4829b8e1ae2e9dbc5fdcbee3dbf5264321766b /test | |
parent | 7320b7df62039c879c4f609bca946ea09b438a98 (diff) |
Fix crash when preview window is hidden on focus event
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 12e53471..30d5e7b2 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -3020,6 +3020,13 @@ class TestGoFZF < TestBase tmux.send_keys :x tmux.until { |lines| assert(lines.any? { |line| line.include?('[x-foo]') }) } end + + def test_preview_window_hidden_on_focus + tmux.send_keys "seq 3 | #{FZF} --preview 'echo {}' --bind focus:hide-preview", :Enter + tmux.until { |lines| assert_includes lines, '> 1' } + tmux.send_keys :Up + tmux.until { |lines| assert_includes lines, '> 2' } + end end module TestShell |