From 628098fff1d75ad104934009b4ce60c4e23204ec Mon Sep 17 00:00:00 2001 From: Phil Runninger Date: Sat, 30 Jan 2021 23:43:29 -0500 Subject: [PATCH] Escape quotation marks so they can be used in key mappings. (#1213) * Escape quotation marks so they can be used in key mappings. * Update version number in change log. --- CHANGELOG.md | 1 + lib/nerdtree/key_map.vim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5783e6..8d8eef9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - **.PATCH**: Pull Request Title (PR Author) [PR Number](Link to PR) --> #### 6.10 +- **.1**: Escape quotation marks so they can be used in key mappings. (PhilRunninger) [#1213](https://github.com/preservim/nerdtree/pull/1213) - **.0**: Enable full path specifications for NERDTreeIgnore (PhilRunninger) [#1207](https://github.com/preservim/nerdtree/pull/1207) #### 6.9 - **.12**: Respect NERDTreeCustomOpenArgs when opening bookmark (przepompownia) [#1200](https://github.com/preservim/nerdtree/pull/1200) diff --git a/lib/nerdtree/key_map.vim b/lib/nerdtree/key_map.vim index f3268c2..e6afb82 100644 --- a/lib/nerdtree/key_map.vim +++ b/lib/nerdtree/key_map.vim @@ -51,7 +51,7 @@ function! s:KeyMap.bind() else let keymapInvokeString = self.key endif - let keymapInvokeString = escape(keymapInvokeString, '\') + let keymapInvokeString = escape(keymapInvokeString, '\"') let premap = self.key ==# '' ? ' ' : ' '