1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-03 20:55:46 +01:00

Provide completion and some bug fixes for :mapg.

This commit is contained in:
Kris Maglione
2011-01-19 05:00:35 -05:00
parent 3c240d29ed
commit ff34528f15
4 changed files with 38 additions and 12 deletions

View File

@@ -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;
}