lib/edit.js
// spawn process and open with associated gui or terminal editor
spawn process and open with associated gui or terminal editor
spawn process and open with associated gui or terminal editor
function openFile(file) {
      var edit;
      if (!editor || gui) {
        open(file);
      } else {
        edit = spawn(editor, [file], {stdio: 'inherit'});
        edit.on('exit', process.exit);
      }
    }
function openFile ( file ) { var edit ; if ( ! editor || gui ) { open ( file ) ; } else { edit = spawn ( editor , [ file ] , { stdio : 'inherit' } ) ; edit . on ( 'exit' , process . exit ) ; } }
spawn process and open with associated gui or terminal editor
spawn process and open with associated gui or terminal editor