aboutsummaryrefslogtreecommitdiff
path: root/bindings.bb
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-10-02 01:40:40 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-10-02 01:40:40 -0700
commitc7e08b884ab876c8ce06000a8789045b50d40c20 (patch)
tree2926457f083304b17abef20105486ba97bf8bb4b /bindings.bb
parent7f402ee32afa7ed065c26d83fbe4537cfeae98f8 (diff)
Fix for some messed up behavior for Escape key and for passing vararg
commands to bb
Diffstat (limited to 'bindings.bb')
-rw-r--r--bindings.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings.bb b/bindings.bb
index a5fd9f0..8b46793 100644
--- a/bindings.bb
+++ b/bindings.bb
@@ -61,7 +61,7 @@ Section: File Selection
v,V,Space: # Toggle selection at cursor
bb +toggle
Escape: # Clear selection
- bb +deselect: "$@"
+ [ $# -gt 0 ] && bb +deselect: "$@"
Ctrl-s: # Save the selection
[ $# -gt 0 ] && ask savename "Save selection as: " && printf '%s\0' "$@" > ~/.config/bb/"$savename"
Ctrl-o: # Open a saved selection