[fzf-tmux] Fix --
This commit is contained in:
parent
23dba99eda
commit
62a28468a7
@ -4,10 +4,16 @@
|
|||||||
|
|
||||||
args=()
|
args=()
|
||||||
opt=""
|
opt=""
|
||||||
|
skip=""
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
arg="$1"
|
arg="$1"
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
-w*|-h*)
|
-w*|-h*)
|
||||||
|
if [ -n "$skip" ]; then
|
||||||
|
args+=("$1")
|
||||||
|
shift
|
||||||
|
continue
|
||||||
|
fi
|
||||||
[[ "$arg" =~ ^-w ]] && opt="-h" || opt=""
|
[[ "$arg" =~ ^-w ]] && opt="-h" || opt=""
|
||||||
if [ ${#arg} -gt 2 ]; then
|
if [ ${#arg} -gt 2 ]; then
|
||||||
size="${arg:2}"
|
size="${arg:2}"
|
||||||
@ -26,7 +32,7 @@ while [ $# -gt 0 ]; do
|
|||||||
--)
|
--)
|
||||||
# "--" can be used to separate fzf-tmux options from fzf options to
|
# "--" can be used to separate fzf-tmux options from fzf options to
|
||||||
# avoid conflicts
|
# avoid conflicts
|
||||||
break
|
skip=1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
args+=("$1")
|
args+=("$1")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user