diff --git a/bin/fzf-tmux b/bin/fzf-tmux index d945c15..b4e041d 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" ;; --)