Fix regex that finds keyword for minimal menu.

This commit is contained in:
Phil Runninger
2020-01-06 09:16:16 -05:00
parent 8a14891241
commit b579c7751d
2 changed files with 2 additions and 1 deletions

View File

@@ -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 . ' '