diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2020-04-01 23:43:35 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-04-03 13:23:15 +0900 |
| commit | 540bfd7a72c050dd2f47fe1f944039d7b416c45e (patch) | |
| tree | 1c461462e7fa6926c42c1fdb7f9da2ff101f599b /shell/completion.bash | |
| parent | 8fbed2b13ab1952eaebc9ebafc916436f818ec4a (diff) | |
| download | fzf-540bfd7a72c050dd2f47fe1f944039d7b416c45e.tar.gz | |
[fzf-tmux] Fall back to plain fzf when split failed
Diffstat (limited to 'shell/completion.bash')
| -rw-r--r-- | shell/completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/completion.bash b/shell/completion.bash index 377afe56..2aec1d64 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -37,7 +37,7 @@ bind '"\e[0n": redraw-current-line' __fzf_comprun() { if [ "$(type -t _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 ${FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}} -- "$@" else |
