summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authortyama711 <tyama711@gmail.com>2023-04-02 23:26:13 +0900
committerGitHub <noreply@github.com>2023-04-02 23:26:13 +0900
commitfb019d43bf17b264f45aba1f1b65cd5a39be0cff (patch)
treeda10b2a100ffa16f6631ef7643bf230932c6b759 /test
parent025aa3377342135f527d728574e59db4cb781292 (diff)
Fix a bug of height range with -1 or -0 (#3226)
Fixed a bug that when both heightUnknown and deferred are true, deferred is not properly reset and the program terminates abnormally. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'test')
-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 7f7d5649..9285a076 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -2716,6 +2716,13 @@ class TestGoFZF < TestBase
assert(lines.any? { _1.include?('only match') })
end
end
+
+ def test_height_range_with_exit_0
+ tmux.send_keys "seq 10 | #{FZF} --height ~10% --exit-0", :Enter
+ tmux.until { |lines| assert_equal 10, lines.item_count }
+ tmux.send_keys :c
+ tmux.until { |lines| assert_equal 0, lines.match_count }
+ end
end
module TestShell