Skip to content
Draft
Changes from all commits
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
12 changes: 11 additions & 1 deletion packages/cli-repl/src/mongosh-repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,17 @@ class MongoshNodeRepl implements EvaluationListener {
// the multiline input are replaced at this point.
const newHistoryEntry = makeMultilineJSIntoSingleLine(ev.input);
if (newHistoryEntry.length > 0) {
originalHistory.unshift(newHistoryEntry);
const newLines = [newHistoryEntry];
/*
changeHistory(
newLines,
this.redactHistory === 'remove-redact'
? 'redact-sensitive-data'
: 'keep-sensitive-data'
);
*/

originalHistory.unshift(...newLines);
}
history.splice(0, history.length, ...originalHistory);
originalHistory = null;
Expand Down
Loading