mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-17 08:43:31 +01:00
Fix some functions that used to use args.string.
This commit is contained in:
@@ -230,8 +230,8 @@ const Abbreviations = Module("abbreviations", {
|
||||
commands.add([ch ? ch + "a[bbrev]" : "ab[breviate]"],
|
||||
"Abbreviate a key sequence" + modeDescription,
|
||||
function (args) {
|
||||
let [,, lhs,, rhs] = splitAbbrev(args[0]);
|
||||
dactyl.assert(lhs, "E474: Invalid argument");
|
||||
let [,, lhs,, rhs] = splitAbbrev(args[0] || "");
|
||||
dactyl.assert(lhs != null, "E474: Invalid argument");
|
||||
|
||||
if (rhs) {
|
||||
if (args["-javascript"]) {
|
||||
|
||||
Reference in New Issue
Block a user