mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-24 21:16:51 -07:00
Merge pull request #134 from wilywampa/master
Check for full match of command name
This commit is contained in:
commit
9b99c1f885
2
plug.vim
2
plug.vim
@ -171,7 +171,7 @@ function! plug#end()
|
|||||||
endif
|
endif
|
||||||
call add(s:triggers[name].map, cmd)
|
call add(s:triggers[name].map, cmd)
|
||||||
elseif cmd =~ '^[A-Z]'
|
elseif cmd =~ '^[A-Z]'
|
||||||
if !exists(':'.cmd)
|
if exists(':'.cmd) != 2
|
||||||
execute printf(
|
execute printf(
|
||||||
\ 'command! -nargs=* -range -bang %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)',
|
\ 'command! -nargs=* -range -bang %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)',
|
||||||
\ cmd, string(cmd), string(name))
|
\ cmd, string(cmd), string(name))
|
||||||
|
Loading…
Reference in New Issue
Block a user