forked from preservim/nerdtree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Escape mappings that use '<>' notation.
KeyMap.bind() does not gracefully handle use of '<>' notation. For example, trying to call NERDTreeAddKeyMap() with a 'key' argument of '<Leader>e'. There were some workarounds KeyMap.bind() to help with this by specifically allowing you to leave off the '<>' parts for '<C-...>', '<M-...>' and mouse mappings and it would add them back for you before creating the mapping. This commit reverts some of that logic and simply says that if the key starts with '<', replace it with <lt>.
- Loading branch information
Showing
1 changed file
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters