m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Properly clear list when --header-lines not filled on reload

This commit is contained in:
Junegunn Choi
2019-12-06 22:34:45 +09:00
parent 1e6ac5590e
commit 86e3994e87
3 changed files with 14 additions and 1 deletions

View File

@@ -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