Skip to content
Myr

[vim] Update FZF command not set up lengthy prompt on narrow screen

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Port of https://github.com/junegunn/fzf.vim/commit/e7928d154aad71e530daf5c17733275da5732680 Since :FZF does not enable preview window, we determine based on full &columns instead of &columns / 2.

authored by Junegunn Choi · committed by Junegunn Choi · parent 2889763 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:plugin/fzf.vim+1 added
787 unmodified lines
788 let prompt = opts.dir789 else790 let prompt = s:shortpath()791 endif792 let prompt = strwidth(prompt) < &columns - 20 ? prompt : '> '793 call extend(opts.options, ['--prompt', prompt])794 call extend(opts.options, args)795 call fzf#run(fzf#wrap('FZF', opts, a:bang))796endfunction
5 unmodified lines