diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-03-08 16:39:30 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-03-08 16:40:48 +0900 |
commit | fb2959c514e433e4cc6a18c4b368cc9cb6158507 (patch) | |
tree | 36b34537e5be8050e182469097fba75a7bb8e751 | |
parent | 62a28468a75d5136dd09560716829b8164d9a985 (diff) |
[fzf-tmux] Fix duplicate arguments to fzf
fzf-tmux -w -q q
fzf-tmux -w -- -q q
-rwxr-xr-x | bin/fzf-tmux | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux index f7470e03..1e045e79 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -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 |