summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-10-20 20:04:06 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-10-20 20:04:06 +0900
commitd2d4d68585ee6b4f4e92d9ead65937168f5984b8 (patch)
tree17ccf49018ed74685e60158d08959e1c6b9ac0a7 /src
parentfaf68dbc5cc52201d0962f73baa5a049528b913c (diff)
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)
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go
index f6dfde2a..e1c5c7bf 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -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 {