Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Oct 7, 2024
1 parent 7803ee1 commit 5f65f9e
Showing 1 changed file with 11 additions and 1 deletion.
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

0 comments on commit 5f65f9e

Please sign in to comment.