Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
readline: fix ctrl + f/b Unicode handling
  • Loading branch information
Avi-D-coder committed Feb 7, 2019
commit 200560cc0decbec35d9188ac9e155ee5bb7381e0
4 changes: 2 additions & 2 deletions lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,11 @@ Interface.prototype._ttyWrite = function(s, key) {
break;

case 'b': // back one character
this._moveCursor(-1);
this._moveCursor(-charLengthLeft(this.line, this.cursor));
break;

case 'f': // forward one character
this._moveCursor(+1);
this._moveCursor(+charLengthAt(this.line, this.cursor));
break;

case 'l': // clear the whole screen
Expand Down