diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2019-12-06 22:34:45 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-12-06 22:34:45 +0900 |
commit | 86e3994e87b264f874ea1620fc31f42e3744aad0 (patch) | |
tree | f57f8924b68b76b9694fca0af6f2b2c7bd21efa0 /test | |
parent | 1e6ac5590ec3c928b4d065a42eb45bac87752bbc (diff) |
Properly clear list when --header-lines not filled on reload
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 8d6fb37c..55c8fc2b 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1647,6 +1647,13 @@ class TestGoFZF < TestBase tmux.send_keys :Space tmux.until { |lines| lines.item_count == 10 } end + + def test_clear_list_when_header_lines_changed_due_to_reload + tmux.send_keys %(seq 10 | #{FZF} --header 0 --header-lines 3 --bind 'space:reload(seq 1)'), :Enter + tmux.until { |lines| lines.any? { |line| line.include?('9') } } + tmux.send_keys :Space + tmux.until { |lines| lines.none? { |line| line.include?('9') } } + end end module TestShell |