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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user