m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03:39 -05:00

Display -S if sort is disabled and toggle-sort is used

This is to address a common confusion that one does not realize that
sorting is intentionally turned off by default and can be enabled by
a bind key.
This commit is contained in:
Junegunn Choi
2017-03-03 02:26:30 +09:00
parent a484811f78
commit cb9238dc4e
2 changed files with 4 additions and 4 deletions

View File

@@ -513,11 +513,11 @@ class TestGoFZF < TestBase
tmux.send_keys "seq 1 111 | #{fzf "-m +s --tac #{opt} -q11"}", :Enter
tmux.until { |lines| lines[-3].include? '> 111' }
tmux.send_keys :Tab
tmux.until { |lines| lines[-2].include? '4/111 (1)' }
tmux.until { |lines| lines[-2].include? '4/111 -S (1)' }
tmux.send_keys 'C-R'
tmux.until { |lines| lines[-3].include? '> 11' }
tmux.send_keys :Tab
tmux.until { |lines| lines[-2].include? '4/111/S (2)' }
tmux.until { |lines| lines[-2].include? '4/111 +S (2)' }
tmux.send_keys :Enter
assert_equal ['111', '11'], readonce.split($/)
end