diff --git a/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/extra/EditingHistory.java b/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/extra/EditingHistory.java index 1bcccc0ded8..394d0eb4096 100644 --- a/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/extra/EditingHistory.java +++ b/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/extra/EditingHistory.java @@ -48,7 +48,9 @@ public abstract class EditingHistory implements History { private History currentDelegate; protected EditingHistory(ConsoleReader in, Iterable originalHistory) { - this.fullHistory = new MemoryHistory(); + MemoryHistory fullHistory = new MemoryHistory(); + fullHistory.setIgnoreDuplicates(false); + this.fullHistory = fullHistory; this.currentDelegate = fullHistory; bind(in, CTRL_UP, (Runnable) () -> moveHistoryToSnippet(in, ((EditingHistory) in.getHistory())::previousSnippet));