Check for exact command name (#306)
This commit is contained in:
parent
1bf68a978b
commit
dade777e6d
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ function! s:defs(commands)
|
|||
endif
|
||||
for command in a:commands
|
||||
let name = ':'.prefix.matchstr(command, '\C[A-Z]\S\+')
|
||||
if !exists(name)
|
||||
if 2 != exists(name)
|
||||
execute substitute(command, '\ze\C[A-Z]', prefix, '')
|
||||
endif
|
||||
endfor
|
||||
|
|
Loading…
Add table
Reference in a new issue