Skip to content

Commit

Permalink
Escape a backslash so it can be used in a key mapping. (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilRunninger authored Feb 14, 2019
1 parent 8cc154d commit 74be22d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nerdtree/key_map.vim
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function! s:KeyMap.bind()
else
let keymapInvokeString = self.key
endif
let keymapInvokeString = escape(keymapInvokeString, '\')

let premap = self.key == "<LeftRelease>" ? " <LeftRelease>" : " "

Expand Down

0 comments on commit 74be22d

Please sign in to comment.