Skip to content

Commit

Permalink
edit: progressbar should be disable in editor
Browse files Browse the repository at this point in the history
Credit: @watilde
Reviewed-By: @iarna
PR-URL: npm/npm#13305
Fixes: #13290
  • Loading branch information
watilde authored and iarna committed Jul 7, 2016
1 parent 1244cc1 commit 12358ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var npm = require('./npm.js')
var path = require('path')
var fs = require('graceful-fs')
var editor = require('editor')
var noProgressTillDone = require('./utils/no-progress-while-running').tillDone

function edit (args, cb) {
var p = args[0]
Expand All @@ -26,9 +27,9 @@ function edit (args, cb) {
var f = path.resolve(npm.dir, p)
fs.lstat(f, function (er) {
if (er) return cb(er)
editor(f, { editor: e }, function (er) {
editor(f, { editor: e }, noProgressTillDone(function (er) {
if (er) return cb(er)
npm.commands.rebuild(args, cb)
})
}))
})
}

0 comments on commit 12358ed

Please sign in to comment.