From 15e2952a2b81cdccec993e1b0e3c5d59d78f8b16 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 7 Apr 2020 09:55:48 +0900 Subject: [PATCH] [fzf-tmux] Allow positional flags Since we don't know in advance which flags tmux will support, simply allow a single uppercase character ([A-Z]) for now. fzf-tmux -xR -yS fzf-tmux -x R -y S Fix #1956 --- bin/fzf-tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index 290ce87..4b3e497 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -77,7 +77,7 @@ while [[ $# -gt 0 ]]; do if [[ ${#arg} -gt 2 ]]; then size="${arg:2}" else - if [[ "$1" =~ ^[0-9%,C]+$ ]]; then + if [[ "$1" =~ ^[0-9%,]+$ ]] || [[ "$1" =~ ^[A-Z]$ ]]; then size="$1" shift else