summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-03-07 10:07:36 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-03-07 10:07:36 +0900
commit5f62d224b0cef3e39667d218cd74be34b2c8219c (patch)
treed346bffd9427562e0a50ba90d85897a1eaf0290c /bin
parent6728870071a70770044e3293fed6804615efa105 (diff)
Fix fzf-tmux script (bash 3.2 compatibility)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fzf-tmux2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index d945c154..b4e041d9 100755
--- a/bin/fzf-tmux
+++ b/bin/fzf-tmux
@@ -15,7 +15,7 @@ while [ $# -gt 0 ]; do
size="$1"
fi
[[ "$arg" =~ ^-w ]] && opt="-h"
- [[ "$size" =~ %$ ]] && opt="$opt -p ${size:0:-1}" ||
+ [[ "$size" =~ %$ ]] && opt="$opt -p ${size:0:((${#size}-1))}" ||
opt="$opt -l $size"
;;
--)