From fb2959c514e433e4cc6a18c4b368cc9cb6158507 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 8 Mar 2015 16:39:30 +0900 Subject: [PATCH] [fzf-tmux] Fix duplicate arguments to fzf fzf-tmux -w -q q fzf-tmux -w -- -q q --- bin/fzf-tmux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index f7470e0..1e045e7 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