From 43907fc3fd168d6683a5b5d02c445b04a3c694ee Mon Sep 17 00:00:00 2001 From: Zach Himsel Date: Thu, 7 May 2020 10:09:48 -0600 Subject: [PATCH] Use tmux panes if FZF_TMUX is set... ...and don't if it's not set. --- zsh/fzf-zsh-completion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/fzf-zsh-completion.sh b/zsh/fzf-zsh-completion.sh index 2f24c0d..891b203 100644 --- a/zsh/fzf-zsh-completion.sh +++ b/zsh/fzf-zsh-completion.sh @@ -136,7 +136,7 @@ _fzf_completion_selector() { tput cud1 >/dev/tty # fzf clears the line on exit so move down one FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS" \ - fzf --ansi --prompt "> $PREFIX" -d "$_FZF_COMPLETION_SEP" --with-nth 3..5 --nth "$field" \ + $(__fzfcmd) --ansi --prompt "> $PREFIX" -d "$_FZF_COMPLETION_SEP" --with-nth 3..5 --nth "$field" \ < <(printf %s\\n "${lines[@]}"; cat) code="$?" tput cuu1 >/dev/tty