mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 21:12:31 +02:00
Fix abbreviation commands.
This commit is contained in:
1 parent
dd924d0822
commit
cf4c33bbd4
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user