mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 05:04:34 +08:00
Be more conservative about unmapping
Restrict unmapping to check for '^<Plug>delimitMate' (case sensitive) instead of 'delimitMate' (case insensitive). This should make it less likely to accidentally trigger on custom user keybinds that reference delimitMate.
This commit is contained in:
@@ -193,7 +193,7 @@ function! s:Unmap() " {{{
|
||||
\ ['<Home>', '<End>', '<PageUp>', '<PageDown>', '<S-Down>', '<S-Up>', '<C-G>g']
|
||||
|
||||
for map in imaps
|
||||
if maparg(map, "i") =~? 'delimitMate'
|
||||
if maparg(map, "i") =~# '^<Plug>delimitMate'
|
||||
if map == '|'
|
||||
let map = '<Bar>'
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user