mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-25 09:41:03 +08:00
Escape a backslash so it can be used in a key mapping. (#948)
This commit is contained in:
parent
8cc154d4b0
commit
74be22deb7
|
@ -51,6 +51,7 @@ function! s:KeyMap.bind()
|
||||||
else
|
else
|
||||||
let keymapInvokeString = self.key
|
let keymapInvokeString = self.key
|
||||||
endif
|
endif
|
||||||
|
let keymapInvokeString = escape(keymapInvokeString, '\')
|
||||||
|
|
||||||
let premap = self.key == "<LeftRelease>" ? " <LeftRelease>" : " "
|
let premap = self.key == "<LeftRelease>" ? " <LeftRelease>" : " "
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user