mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-12 00:16:28 +00:00
[fzf-tmux] Split zsh variable expansion for old zsh
The following code works in zsh 5.8 but not in 5.4 ${(Q)${(Z+n+)FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}}}
This commit is contained in:
parent
540bfd7a72
commit
21f94ee800
@ -101,7 +101,11 @@ __fzf_comprun() {
|
|||||||
_fzf_comprun "$@"
|
_fzf_comprun "$@"
|
||||||
elif [ -n "$TMUX_PANE" ] && { [ "${FZF_TMUX:-0}" != 0 ] || [ -n "$FZF_TMUX_OPTS" ]; }; then
|
elif [ -n "$TMUX_PANE" ] && { [ "${FZF_TMUX:-0}" != 0 ] || [ -n "$FZF_TMUX_OPTS" ]; }; then
|
||||||
shift
|
shift
|
||||||
fzf-tmux ${(Q)${(Z+n+)FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}}} -- "$@"
|
if [ -n "$FZF_TMUX_OPTS" ]; then
|
||||||
|
fzf-tmux ${(Q)${(Z+n+)FZF_TMUX_OPTS}} -- "$@"
|
||||||
|
else
|
||||||
|
fzf-tmux -d ${FZF_TMUX_HEIGHT:-40%} -- "$@"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
shift
|
shift
|
||||||
fzf "$@"
|
fzf "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user