mirror of
https://github.com/junegunn/fzf.git
synced 2026-02-28 04:22:34 +08:00
Fix double subtraction of header lines from FZF_TOTAL_COUNT
Close #4692
This commit is contained in:
@@ -1755,7 +1755,7 @@ class TestCore < TestInteractive
|
||||
end
|
||||
end
|
||||
|
||||
tmux.send_keys %(seq 100 | #{FZF} --multi --reverse --preview-window 0 --preview 'env | grep ^FZF_ | sort > #{tempname}' --no-input --bind enter:show-input+refresh-preview,space:disable-search+refresh-preview), :Enter
|
||||
tmux.send_keys %({ echo foo; seq 100; } | #{FZF} --header-lines 1 --multi --reverse --preview-window 0 --preview 'env | grep ^FZF_ | sort > #{tempname}' --no-input --bind enter:show-input+refresh-preview,space:disable-search+refresh-preview), :Enter
|
||||
expected = {
|
||||
FZF_DIRECTION: 'down',
|
||||
FZF_TOTAL_COUNT: '100',
|
||||
|
||||
Reference in New Issue
Block a user