mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-04-06 09:11:51 +00:00
Merge pull request #180 from mhinz/check-if-already-running
Check if :FZF is already executing
This commit is contained in:
commit
4760bb7743
@ -318,6 +318,12 @@ function! s:cmd_callback(lines) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:cmd(bang, ...) abort
|
function! s:cmd(bang, ...) abort
|
||||||
|
if bufexists('[FZF]')
|
||||||
|
echohl WarningMsg
|
||||||
|
echomsg 'FZF is already running!'
|
||||||
|
echohl NONE
|
||||||
|
return
|
||||||
|
endif
|
||||||
let args = copy(a:000)
|
let args = copy(a:000)
|
||||||
if !s:legacy
|
if !s:legacy
|
||||||
let args = insert(args, '--expect=ctrl-t,ctrl-x,ctrl-v', 0)
|
let args = insert(args, '--expect=ctrl-t,ctrl-x,ctrl-v', 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user