mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-08-12 19:06:54 +08:00
Check for exact command name (#306)
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ function! s:defs(commands)
|
|||||||
endif
|
endif
|
||||||
for command in a:commands
|
for command in a:commands
|
||||||
let name = ':'.prefix.matchstr(command, '\C[A-Z]\S\+')
|
let name = ':'.prefix.matchstr(command, '\C[A-Z]\S\+')
|
||||||
if !exists(name)
|
if 2 != exists(name)
|
||||||
execute substitute(command, '\ze\C[A-Z]', prefix, '')
|
execute substitute(command, '\ze\C[A-Z]', prefix, '')
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user