diff --git a/src/Screen.cpp b/src/Screen.cpp index c322406bd..669248411 100644 --- a/src/Screen.cpp +++ b/src/Screen.cpp @@ -204,6 +204,14 @@ void Screen::deleteChars(int n) Q_ASSERT(_cuX + n <= _screenLines[_cuY].count()); _screenLines[_cuY].remove(_cuX, n); + + // Append space(s) with current attributes + Character spaceWithCurrentAttrs(' ', _effectiveForeground, + _effectiveBackground, + _effectiveRendition, false); + + for (int i = 0; i < n; i++) + _screenLines[_cuY].append(spaceWithCurrentAttrs); } void Screen::insertChars(int n)