1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 12:58:00 +01:00

Fix abbreviation commands.

This commit is contained in:
Doug Kearns
2009-11-10 07:06:46 +11:00
parent dd924d0822
commit cf4c33bbd4

View File

@@ -661,7 +661,7 @@ const Editor = Module("editor", {
commands.add([ch ? ch + "a[bbrev]" : "ab[breviate]"],
"Abbreviate a key sequence" + modeDescription,
function (args) {
let matches = args.string.match(RegExp("^\\s*($|" + this._abbrevmatch + ")(?:\\s*$|\\s+(.*))"));
let matches = args.string.match(RegExp("^\\s*($|" + editor._abbrevmatch + ")(?:\\s*$|\\s+(.*))"));
liberator.assert(matches, "E474: Invalid argument");
let [, lhs, rhs] = matches;