From 540bfd7a72c050dd2f47fe1f944039d7b416c45e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 1 Apr 2020 23:43:35 +0900 Subject: [fzf-tmux] Fall back to plain fzf when split failed --- shell/completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/completion.zsh') diff --git a/shell/completion.zsh b/shell/completion.zsh index e791b3a7..4c7922e5 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -99,7 +99,7 @@ fi __fzf_comprun() { if [[ "$(type _fzf_comprun 2>&1)" =~ function ]]; then _fzf_comprun "$@" - elif [ -n "$TMUX_PANE" ] && { [ "${FZF_TMUX:-0}" != 0 ] && [ ${LINES:-40} -gt 15 ] || [ -n "$FZF_TMUX_OPTS" ]; }; then + elif [ -n "$TMUX_PANE" ] && { [ "${FZF_TMUX:-0}" != 0 ] || [ -n "$FZF_TMUX_OPTS" ]; }; then shift fzf-tmux ${(Q)${(Z+n+)FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}}} -- "$@" else -- cgit v1.2.3