Comparing version 0.0.5 to 0.0.6
@@ -12,5 +12,7 @@ var spawn = require('child_process').spawn; | ||
var editor = opts.editor || process.env.VISUAL || process.env.EDITOR || ed; | ||
var args = editor.split(/\s+/); | ||
var bin = args.shift(); | ||
setRaw(true); | ||
var ps = spawn(editor, [ file ], { customFds : [ 0, 1, 2 ] }); | ||
var ps = spawn(bin, args.concat([ file ]), { customFds : [ 0, 1, 2 ] }); | ||
@@ -17,0 +19,0 @@ ps.on('exit', function (code, sig) { |
{ | ||
"name" : "editor", | ||
"version" : "0.0.5", | ||
"version" : "0.0.6", | ||
"description" : "launch $EDITOR in your program", | ||
@@ -5,0 +5,0 @@ "main" : "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3577
32