test: properly test missing clears after scroll

NB: happened to be irrelevant to the present failure, which
only occured with the compositor and not exteral UI for some reason
This commit is contained in:
Björn Linse 2019-09-06 19:33:12 +02:00
parent 1fc6489f30
commit 837f31c0b4

View File

@ -859,7 +859,7 @@ function Screen:_handle_grid_scroll(g, top, bot, left, right, rows, cols)
-- clear invalid rows
for i = stop + step, stop + rows, step do
self:_clear_row_section(grid, i, left, right)
self:_clear_row_section(grid, i, left, right, true)
end
end
@ -1065,10 +1065,10 @@ function Screen:_clear_block(grid, top, bot, left, right)
end
end
function Screen:_clear_row_section(grid, rownum, startcol, stopcol)
function Screen:_clear_row_section(grid, rownum, startcol, stopcol, invalid)
local row = grid.rows[rownum]
for i = startcol, stopcol do
row[i].text = ' '
row[i].text = (invalid and '<EFBFBD>' or ' ')
row[i].attrs = self._clear_attrs
end
end