mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
1fc6489f30
commit
837f31c0b4
@ -859,7 +859,7 @@ function Screen:_handle_grid_scroll(g, top, bot, left, right, rows, cols)
|
|||||||
|
|
||||||
-- clear invalid rows
|
-- clear invalid rows
|
||||||
for i = stop + step, stop + rows, step do
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1065,10 +1065,10 @@ function Screen:_clear_block(grid, top, bot, left, right)
|
|||||||
end
|
end
|
||||||
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]
|
local row = grid.rows[rownum]
|
||||||
for i = startcol, stopcol do
|
for i = startcol, stopcol do
|
||||||
row[i].text = ' '
|
row[i].text = (invalid and '<EFBFBD>' or ' ')
|
||||||
row[i].attrs = self._clear_attrs
|
row[i].attrs = self._clear_attrs
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user