nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 628098fff1d75ad104934009b4ce60c4e23204ec
parent b134f6518b902c7e0482ae770b804fd47c2d2426
Author: Phil Runninger <PhilRunninger@users.noreply.github.com>
Date:   Sat, 30 Jan 2021 23:43:29 -0500

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.
Diffstat:
MCHANGELOG.md | 1+
Mlib/nerdtree/key_map.vim | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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
@@ -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 ==# '<LeftRelease>' ? ' <LeftRelease>' : ' '