[fzf-tmux] Fix duplicate arguments to fzf

fzf-tmux -w -q q
fzf-tmux -w -- -q q
This commit is contained in:
Junegunn Choi 2015-03-08 16:39:30 +09:00
parent 62a28468a7
commit fb2959c514
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ while [ $# -gt 0 ]; do
if [[ "$1" =~ ^[0-9]+%?$ ]]; then
size="$1"
else
[ -n "$1" ] && args+=("$1")
[ -n "$1" -a "$1" != "--" ] && args+=("$1")
shift
continue
fi
fi