MCPcopy Create free account
hub / github.com/nodejs/node / [kMoveDownOrHistoryNext]

Method [kMoveDownOrHistoryNext]

lib/internal/readline/interface.js:1130–1139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1128 }
1129
1130 [kMoveDownOrHistoryNext]() {
1131 const cursorPos = this.getCursorPos();
1132 const splitLines = StringPrototypeSplit(this.line, '\n');
1133 if (this[kIsMultiline] && cursorPos.rows < splitLines.length - 1) {
1134 this[kMultilineMove](1, splitLines, cursorPos);
1135 return;
1136 }
1137 this[kPreviousCursorCols] = -1;
1138 this[kHistoryNext]();
1139 }
1140
1141 // TODO(BridgeAR): Add underscores to the search part and a red background in
1142 // case no match is found. This should only be the visual part and not the

Callers

nothing calls this directly

Calls 1

getCursorPosMethod · 0.95

Tested by

no test coverage detected