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

use parseArgs for 'editor' option

This commit is contained in:
Martin Stubenschrott
2008-07-09 21:03:11 +00:00
parent 10132f0c64
commit 182a78ef07
4 changed files with 8 additions and 5 deletions

View File

@@ -1296,7 +1296,7 @@ liberator.Buffer = 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 = editor.split(" "); // FIXME: too simple
var args = liberator.commands.parseArgs(editor, [], "*", true).arguments;
if (args.length < 1)
{
liberator.echoerr("no editor specified");