Add scrollbar to the preview window

This commit is contained in:
Junegunn Choi committed 2023-01-06 15:36:12 +09:00
1 parent ee5cdb9713
commit 3b2244077d
4 files changed
+123 -24

No files matched your search

+7 -7
View File
@@ -2380,13 +2380,13 @@ class TestGoFZF < TestBase
tmux.send_keys "seq 3 | fzf --height ~100% --border=vertical --preview 'seq {}' --preview-window left,5,border-right --padding 1 --exit-0 --header $'hello\\nworld' --header-lines=2", :Enter
expected = <<~OUTPUT
│
│ 1 │> 3
│ 2 │ 2
│ 3 │ 1
│ │ hello
│ │ world
│ │ 1/1 ─
│ │>
│ 1 │ > 3
│ 2 │ 2
│ 3 │ 1
│ │ hello
│ │ world
│ │ 1/1 ─
│ │ >
│
OUTPUT
tmux.until { assert_block(expected, _1) }