mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 17:27:59 +01:00
Fix zero-argument :qmarks form. Closes issue #26.
This commit is contained in:
@@ -157,7 +157,8 @@ const QuickMarks = Module("quickmarks", {
|
||||
commands.add(["qmarks"],
|
||||
"Show all QuickMarks",
|
||||
function (args) {
|
||||
args = args[0];
|
||||
dactyl.dump(args);
|
||||
args = args[0] || "";
|
||||
|
||||
// ignore invalid qmark characters unless there are no valid qmark chars
|
||||
dactyl.assert(!args || /[a-zA-Z0-9]/.test(args), "E283: No QuickMarks matching " + args.quote());
|
||||
|
||||
Reference in New Issue
Block a user