mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-03 06:54:12 +01:00
Fix some functions that used to use args.string.
This commit is contained in:
@@ -503,7 +503,7 @@ lookup:
|
||||
commands.add(["cd", "chd[ir]"],
|
||||
"Change the current directory",
|
||||
function (args) {
|
||||
let arg = args.literalArg;
|
||||
let arg = args[0];
|
||||
|
||||
if (!arg)
|
||||
arg = "~";
|
||||
@@ -618,7 +618,7 @@ lookup:
|
||||
commands.add(["!", "run"],
|
||||
"Run a command",
|
||||
function (args) {
|
||||
let arg = args.literalArg;
|
||||
let arg = args[0] || "";
|
||||
|
||||
// :!! needs to be treated specially as the command parser sets the
|
||||
// bang flag but removes the ! from arg
|
||||
|
||||
Reference in New Issue
Block a user