diff --git a/src/terminal.go b/src/terminal.go index c7c21c4..f556bad 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -658,9 +658,9 @@ func (t *Terminal) printInfo() { output := fmt.Sprintf("%d/%d", t.merger.Length(), t.count) if t.toggleSort { if t.sort { - output += "/S" + output += " +S" } else { - output += " " + output += " -S" } } if t.multi && len(t.selected) > 0 { diff --git a/test/test_go.rb b/test/test_go.rb index 582b10b..0470375 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -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