summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-03-11 22:35:24 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-03-11 22:35:24 +0900
commit373c6d8d55066251dc7af58598de6af4ff4570cf (patch)
tree64ee23a2408245aba56f5e3d07a08b3e17c98ad8 /test
parentb8fc828955176f18a94630f2ad4d28c54aa6c927 (diff)
Add --keep-right option to keep the right end of the line visible
Close #1652
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index c640e2fb..ca862a53 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -1728,6 +1728,11 @@ class TestGoFZF < TestBase
tmux.send_keys :Enter
end
end
+
+ def test_keep_right
+ tmux.send_keys("seq 10000 | #{FZF} --read0 --keep-right", :Enter)
+ tmux.until { |lines| lines.any_include?('9999 10000') }
+ end
end
module TestShell