mirror of
https://github.com/junegunn/vim-plug.git
synced 2026-10-07 20:44:35 +08:00
Case-sensitive validation of on arguments (#314)
This commit is contained in:
1 parent
0c710f75f4
commit
38e1e6335c
1 file changed
+4
-1
@@ -175,11 +175,14 @@ function! plug#end()
|
||||
call s:assoc(lod.map, cmd, name)
|
||||
endif
|
||||
call add(s:triggers[name].map, cmd)
|
||||
elseif cmd =~ '^[A-Z]'
|
||||
elseif cmd =~# '^[A-Z]'
|
||||
if exists(':'.cmd) != 2
|
||||
call s:assoc(lod.cmd, cmd, name)
|
||||
endif
|
||||
call add(s:triggers[name].cmd, cmd)
|
||||
else
|
||||
call s:err('Invalid `on` option: '.cmd.
|
||||
\ '. Should start with an uppercase letter or `<Plug>`.')
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user