mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-07 21:24:51 +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']
|
\ ['<Home>', '<End>', '<PageUp>', '<PageDown>', '<S-Down>', '<S-Up>', '<C-G>g']
|
||||||
|
|
||||||
for map in imaps
|
for map in imaps
|
||||||
if maparg(map, "i") =~? 'delimitMate'
|
if maparg(map, "i") =~# '^<Plug>delimitMate'
|
||||||
if map == '|'
|
if map == '|'
|
||||||
let map = '<Bar>'
|
let map = '<Bar>'
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user