mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
ignore quoted and escaped characters when splitting keybindings into actions (#3612)
This commit is contained in:
@@ -100,9 +100,7 @@ func BufMapEvent(k Event, action string) {
|
||||
break
|
||||
}
|
||||
|
||||
// TODO: fix problem when complex bindings have these
|
||||
// characters (escape them?)
|
||||
idx := strings.IndexAny(action, "&|,")
|
||||
idx := util.IndexAnyUnquoted(action, "&|,")
|
||||
a := action
|
||||
if idx >= 0 {
|
||||
a = action[:idx]
|
||||
|
||||
Reference in New Issue
Block a user