Merge pull request #134 from wilywampa/master

Check for full match of command name
This commit is contained in:
Junegunn Choi 2014-12-08 10:02:09 +09:00
commit 9b99c1f885

View File

@ -171,7 +171,7 @@ function! plug#end()
endif
call add(s:triggers[name].map, cmd)
elseif cmd =~ '^[A-Z]'
if !exists(':'.cmd)
if exists(':'.cmd) != 2
execute printf(
\ 'command! -nargs=* -range -bang %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)',
\ cmd, string(cmd), string(name))