Escape a backslash so it can be used in a key mapping. (#948)

This commit is contained in:
Phil Runninger 2019-02-14 15:28:30 -05:00 committed by GitHub
parent 8cc154d4b0
commit 74be22deb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,7 @@ function! s:KeyMap.bind()
else
let keymapInvokeString = self.key
endif
let keymapInvokeString = escape(keymapInvokeString, '\')
let premap = self.key == "<LeftRelease>" ? " <LeftRelease>" : " "