Skip to content
Myr

Check if :FZF is already executing

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

Prior to this change, you'd get a longer error message if you did: :FZF <esc> :FZF The main problem being that `:file [FZF]` can be used only once.

authored by Marco Hinz · committed by Marco Hinz · parent 622e69f · Browse files · 1 file+6 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:plugin/fzf.vim+6 added
316 unmodified lines
317 endtry318endfunction319320function! s:cmd(bang, ...) abort321 if bufexists('[FZF]')322 echohl WarningMsg323 echomsg 'FZF is already running!'324 echohl NONE325 return326 endif327 let args = copy(a:000)328 if !s:legacy329 let args = insert(args, '--expect=ctrl-t,ctrl-x,ctrl-v', 0)330 endif
21 unmodified lines