1
0
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:
Kris Maglione
2010-09-29 13:21:01 -04:00
parent 47f5b5e9d9
commit f7b99e9272
9 changed files with 25 additions and 25 deletions

View File

@@ -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