diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fzf-tmux | 2 |
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" ;; --) |