GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — readline: refactor to move tab to its own case · nodejs/node@b2774b3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • readline.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/readline.js‎

Copy file name to clipboardExpand all lines: lib/readline.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -861,15 +861,15 @@ Interface.prototype._ttyWrite = function(s, key) {
861861
this._historyNext();
862862
break;
863863

864-
default:
865-
if (key.name === 'tab') {
866-
// If tab completion enabled, do that...
867-
if (typeof this.completer === 'function') {
868-
this._tabComplete();
869-
break;
870-
}
864+
case 'tab':
865+
// If tab completion enabled, do that...
866+
if (typeof this.completer === 'function') {
867+
this._tabComplete();
868+
break;
871869
}
870+
// falls through
872871

872+
default:
873873
if (s instanceof Buffer)
874874
s = s.toString('utf-8');
875875

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.