mirror of
https://github.com/junegunn/fzf.git
synced 2024-09-11 14:35:26 +03:00
[vim] Update FZF command not set up lengthy prompt on narrow screen
Port of e7928d154a
Since :FZF does not enable preview window, we determine based on full
&columns instead of &columns / 2.
This commit is contained in:
parent
288976310b
commit
5edc3f755c
@ -789,6 +789,7 @@ function! s:cmd(bang, ...) abort
|
||||
else
|
||||
let prompt = s:shortpath()
|
||||
endif
|
||||
let prompt = strwidth(prompt) < &columns - 20 ? prompt : '> '
|
||||
call extend(opts.options, ['--prompt', prompt])
|
||||
call extend(opts.options, args)
|
||||
call fzf#run(fzf#wrap('FZF', opts, a:bang))
|
||||
|
Loading…
Reference in New Issue
Block a user