summaryrefslogtreecommitdiff
path: root/common/modules/io.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-01-05 18:54:17 -0500
committerKris Maglione <maglione.k@gmail.com>2011-01-05 18:54:17 -0500
commit841459e507516cf6aebb6e1af0da174f613daf05 (patch)
tree9186e225e68b235a336ba19162101da55213c3a2 /common/modules/io.jsm
parent663a3981126591f75c3c0b8b011b7b797c29f19d (diff)
downloadpentadactyl-841459e507516cf6aebb6e1af0da174f613daf05.tar.gz
Fix some bugs.
Diffstat (limited to 'common/modules/io.jsm')
-rw-r--r--common/modules/io.jsm8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/modules/io.jsm b/common/modules/io.jsm
index 3823af27..1cf24a3e 100644
--- a/common/modules/io.jsm
+++ b/common/modules/io.jsm
@@ -221,12 +221,12 @@ var IO = Module("io", {
newDir = newDir || "~";
if (newDir == "-") {
- dactyl.assert(this._oldcwd != null, "E186: No previous directory");
+ util.assert(this._oldcwd != null, "E186: No previous directory");
[this._cwd, this._oldcwd] = [this._oldcwd, this.cwd];
}
else {
let dir = io.File(newDir);
- dactyl.assert(dir.exists() && dir.isDirectory(), "E344: Can't find directory " + dir.path.quote());
+ util.assert(dir.exists() && dir.isDirectory(), "E344: Can't find directory " + dir.path.quote());
dir.normalize();
[this._cwd, this._oldcwd] = [dir.path, this.cwd];
}
@@ -357,7 +357,7 @@ var IO = Module("io", {
file = this.pathSearch(program);
if (!file || !file.exists()) {
- dactyl.echoerr("Command not found: " + program);
+ util.dactyl.echoerr("Command not found: " + program);
return -1;
}
@@ -576,7 +576,7 @@ var IO = Module("io", {
let lines = [cmd.serialize().map(commands.commandToString, cmd) for (cmd in commands.iterator()) if (cmd.serialize)];
lines = array.flatten(lines);
- lines.unshift('"' + dactyl.version + "\n");
+ lines.unshift('"' + util.version + "\n");
lines.push("\n\" vim: set ft=" + config.name + ":");
try {