mirror of
https://github.com/KDE/konsole.git
synced 2026-06-12 16:05:45 -04:00
Fix wrong rendering at the end of line when drawing colored whitespaces
Previous code just deleted the end characters; new code puts in spaces
with current attributes at the end of the line.
Thanks to Igor Kostromin elwood.su@gmail.com for bug, research + patch
See bko for test code + more info
BUG: 330214
FIXED-IN: 2.13
(cherry picked from commit 427de88cc1)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user