mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-03 18:35:46 +01:00
Provide completion and some bug fixes for :mapg.
This commit is contained in:
@@ -1250,11 +1250,14 @@ var Options = Module("options", {
|
||||
case "regexpmap":
|
||||
let vals = Option.splitList(context.filter);
|
||||
let target = vals.pop() || "";
|
||||
|
||||
let [count, key, quote] = Commands.parseArg(target, /:/, true);
|
||||
let split = Option._splitAt;
|
||||
|
||||
extra.key = Option.dequote(key);
|
||||
extra.value = count < target.length ? Option.dequote(target.substr(count + 1)) : null;
|
||||
extra.values = opt.parse(vals.join(","));
|
||||
|
||||
Option._splitAt = split + (extra.value == null ? 0 : count + 1);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user