Commit ed7fe4a2 authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

Resize lines when clearing to end of line.

clearImage() just clears until _columns.  To prevent characters from
beyond _columns from reappearing, e.g. due to DCH (Delete CHaracters)
requests, make clearImage() resize lines when clearing to the end of

BUG: 432669
parent 7a35124f
......@@ -1130,6 +1130,10 @@ void Screen::clearImage(int loca, int loce, char c, bool resetLineRendition)
line.resize(endCol + 1);
if (endCol == _columns - 1) {
line.resize(endCol + 1);
if (startCol <= endCol) {
std::fill(line.begin() + startCol, line.begin() + (endCol + 1), clearCh);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment