diff --git a/content/buffer.js b/content/buffer.js index 48bf1be2..d7f0a5c5 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -1355,7 +1355,7 @@ liberator.Buffer = function () //{{{ {[ - {idx == index ? > : ""} + {idx == index ? {">"} : ""} {Math.abs(idx - index)} {val.title} {val.URI.spec} @@ -1436,8 +1436,6 @@ liberator.Buffer = function () //{{{ { // TODO: make that a helper function // TODO: save return value in v:shell_error - var newThread = Components.classes["@mozilla.org/thread-manager;1"] - .getService().newThread(0); var editor = liberator.options["editor"]; var args = liberator.commands.parseArgs(editor, [], "*", true).arguments; if (args.length < 1) @@ -1448,7 +1446,7 @@ liberator.Buffer = function () //{{{ var prog = args.shift(); args.push(url); - liberator.callFunctionInThread(newThread, liberator.io.run, [prog, args, true]); + liberator.callFunctionInThread(null, liberator.io.run, [prog, args, true]); } else { diff --git a/content/editor.js b/content/editor.js index 0a518b2e..6bca188c 100644 --- a/content/editor.js +++ b/content/editor.js @@ -836,10 +836,8 @@ liberator.Editor = function () //{{{ textBox.style.backgroundColor = "#bbbbbb"; } - var newThread = Components.classes["@mozilla.org/thread-manager;1"] - .getService().newThread(0); // TODO: save return value in v:shell_error - liberator.callFunctionInThread(newThread, liberator.io.run, [prog, args, true]); + liberator.callFunctionInThread(null, liberator.io.run, [prog, args, true]); if (textBox) textBox.removeAttribute("readonly");