summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-04-07 09:55:48 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-04-07 09:55:48 +0900
commit15e2952a2b81cdccec993e1b0e3c5d59d78f8b16 (patch)
treef440f69e76aab2166fc5b7e22bef4794cf09bc8b /bin
parenta9fba1c8496f7352de55b9fe5f36f23872e5a364 (diff)
[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
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fzf-tmux2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index 290ce87e..4b3e497f 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