Parcourir la source

Merge pull request #134 from wilywampa/master

Check for full match of command name
Junegunn Choi il y a 11 ans
Parent
commit
9b99c1f885
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -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))