mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
Fix regex that finds keyword for minimal menu.
This commit is contained in:
@@ -62,7 +62,7 @@ function! s:MenuController._echoPrompt()
|
||||
|
||||
if self.isMinimal()
|
||||
let selection = self.menuItems[self.selection].text
|
||||
let keyword = matchstr(selection, '\([^ ]*')
|
||||
let keyword = matchstr(selection, '[^ ]*([^ ]*')
|
||||
|
||||
let shortcuts = map(copy(self.menuItems), "v:val['shortcut']")
|
||||
let shortcuts[self.selection] = ' ' . keyword . ' '
|
||||
|
||||
Reference in New Issue
Block a user