diff --git a/terminal/src/main/java/org/jline/utils/Display.java b/terminal/src/main/java/org/jline/utils/Display.java index 8caa603b9..3c42cc4ac 100644 --- a/terminal/src/main/java/org/jline/utils/Display.java +++ b/terminal/src/main/java/org/jline/utils/Display.java @@ -301,9 +301,10 @@ public void update(List newLines, int targetCursorPos) { terminal.puts(Capability.clr_eol); } } else if (atRight) { - if (this.wrapAtEol) - cursorPos++; - else { + if (this.wrapAtEol) { + terminal.writer().write(" \b"); + cursorPos++; + } else { terminal.puts(Capability.carriage_return); // CR / not newline. cursorPos = curCol; }