Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
general: don't clear selected files if there aren't any
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jan 28, 2019
1 parent 080bcee commit a0907b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fff
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,10 @@ key() {

# Clear all marked files.
"${FFF_KEY_CLEAR:=c}")
marked_files=()
redraw
[[ ${marked_files[*]} ]] && {
marked_files=()
redraw
}
;;

# Rename list item.
Expand Down

0 comments on commit a0907b5

Please sign in to comment.