summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-01-28 19:27:07 +0200
committerDylan Araps <dylan.araps@gmail.com>2019-01-28 19:27:07 +0200
commita0907b5ec1c3b292c408e1482fcdc4b59130143f (patch)
treec92a214b20e5f257f24f0781b07bdd02157e19d0
parent080bcee4036ef264b5b70e2434abb44c39007912 (diff)
general: don't clear selected files if there aren't any1.8
-rwxr-xr-xfff6
1 files changed, 4 insertions, 2 deletions
diff --git a/fff b/fff
index 7468461..1813de6 100755
--- a/fff
+++ b/fff
@@ -752,8 +752,10 @@ key() {
# Clear all marked files.
"${FFF_KEY_CLEAR:=c}")
- marked_files=()
- redraw
+ [[ ${marked_files[*]} ]] && {
+ marked_files=()
+ redraw
+ }
;;
# Rename list item.