mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-13 13:53:47 -05:00
Fix parse error of actions with arguments
This commit is contained in:
@@ -1131,7 +1131,7 @@ func parseKeymap(keymap map[tui.Event][]*action, str string, exit func(string))
|
||||
|
||||
func isExecuteAction(str string) actionType {
|
||||
matches := executeRegexp.FindAllStringSubmatch(":"+str, -1)
|
||||
if matches == nil || len(matches) != 1 {
|
||||
if matches == nil || len(matches) != 1 || len(matches[0][0]) != len(str)+1 {
|
||||
return actIgnore
|
||||
}
|
||||
prefix := matches[0][1]
|
||||
|
||||
Reference in New Issue
Block a user