diff --git a/src/prompt_toolkit/layout/containers.py b/src/prompt_toolkit/layout/containers.py index 8f2b9896a..e618514ad 100644 --- a/src/prompt_toolkit/layout/containers.py +++ b/src/prompt_toolkit/layout/containers.py @@ -2163,9 +2163,6 @@ def copy_line( # Append continuation (e.g. hyphen) if continuation: x, y = copy_line(continuation, lineno, x, y, is_input=False) - # Make sure to erase rest of the line - for i in range(x, width): - new_buffer_row[i + xpos] = empty_char if wrap_replaced < 0: return x, y