Always show the number of selected entries to indicate if --multi is enabled

Close #2217

  seq 100 | fzf
    # 100/100
  seq 100 | fzf --multi
    # 100/100 (0)
  seq 100 | fzf --multi 5
    # 100/100 (0/5)
This commit is contained in:
Junegunn Choi
2020-10-20 20:04:06 +09:00
parent faf68dbc5c
commit d2d4d68585
2 changed files with 22 additions and 22 deletions

View File

@@ -888,7 +888,7 @@ func (t *Terminal) printInfo() {
output += " -S"
}
}
if len(t.selected) > 0 {
if t.multi > 0 {
if t.multi == maxMulti {
output += fmt.Sprintf(" (%d)", len(t.selected))
} else {