Skip to content

Commit

Permalink
Fix cursor behavior (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore authored and SBoudrias committed Aug 31, 2017
1 parent dad46b5 commit 7089e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/screen-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ScreenManager.prototype.render = function (content, bottomContent) {
// Remove the rl.line from our prompt. We can't rely on the content of
// rl.line (mainly because of the password prompt), so just rely on it's
// length.
var prompt = promptLine;
var prompt = rawPromptLine;
if (this.rl.line.length) {
prompt = prompt.slice(0, -this.rl.line.length);
}
Expand Down

0 comments on commit 7089e16

Please sign in to comment.