summaryrefslogtreecommitdiffstats
path: root/test/test_go.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go.rb')
-rwxr-xr-xtest/test_go.rb7
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