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:
@@ -661,7 +661,7 @@ const Editor = Module("editor", {
|
|||||||
commands.add([ch ? ch + "a[bbrev]" : "ab[breviate]"],
|
commands.add([ch ? ch + "a[bbrev]" : "ab[breviate]"],
|
||||||
"Abbreviate a key sequence" + modeDescription,
|
"Abbreviate a key sequence" + modeDescription,
|
||||||
function (args) {
|
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");
|
liberator.assert(matches, "E474: Invalid argument");
|
||||||
|
|
||||||
let [, lhs, rhs] = matches;
|
let [, lhs, rhs] = matches;
|
||||||
|
|||||||
Reference in New Issue
Block a user