summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-09-12 18:22:07 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-09-12 18:31:14 +0900
commit952276dc2dcdd5401be804b4417d0cb392e2eda8 (patch)
tree6ed067738c9d4c78213a7548a4d282315e6785e1 /test
parent2286edb3296a5d50f048bf950163ef4c3a0651fa (diff)
downloadfzf-952276dc2dcdd5401be804b4417d0cb392e2eda8.tar.gz
Add 'noinfo' option to hide scroll offset information in preview window
fzf --preview 'seq 1000' --preview-window noinfo Close #2525
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index ac294d62..1860ac1a 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -3378,6 +3378,15 @@ class TestGoFZF < TestBase
assert_equal expected, result
end
end
+
+ def test_preview_window_noinfo
+ # │ 1 ││
+ tmux.send_keys %(#{FZF} --preview 'seq 1000' --preview-window top,noinfo --scrollbar), :Enter
+ tmux.until do |lines|
+ assert lines[1]&.start_with?('│ 1')
+ assert lines[1]&.end_with?(' ││')
+ end
+ end
end
module TestShell