1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 01:07:58 +01:00

Fix definition link for commands defined on the command-line.

This commit is contained in:
Kris Maglione
2010-12-18 18:56:17 -05:00
parent 08058d0e4d
commit 394420a9d1
8 changed files with 70 additions and 35 deletions

View File

@@ -241,12 +241,12 @@ const Editor = Module("editor", {
return -1;
},
editFileExternally: function (path, line, column) {
editFileExternally: function (path, line, column, async) {
let args = options.get("editor").format({ file: path, line: line, column: column });
dactyl.assert(args.length >= 1, "No editor specified");
io.run(io.expandPath(args.shift()), args, true);
io.run(io.expandPath(args.shift()), args, !async);
},
// TODO: clean up with 2 functions for textboxes and currentEditor?