MCPcopy Index your code
hub / github.com/nodejs/node / goToNextHistoryIndex

Function goToNextHistoryIndex

lib/internal/repl/utils.js:557–563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

555 }
556
557 function goToNextHistoryIndex() {
558 // Ignore this entry for further searches and continue to the next
559 // history entry.
560 alreadyMatched.add(repl.history[historyIndex]);
561 historyIndex += dir === 'r' ? 1 : -1;
562 cursor = -1;
563 }
564
565 function search() {
566 // Just print an empty line in case the user removed the search parameter.

Callers 1

searchFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected