diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-09-06 19:33:12 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-09-06 19:39:26 +0200 |
commit | 837f31c0b48f1f8f859cab575b65d914c98b5e13 (patch) | |
tree | 10d340ea88e07532d0705333e2d09994a2ff0368 | |
parent | 1fc6489f306c6f115ebd2abd95052e6f5b646cd2 (diff) | |
download | rneovim-837f31c0b48f1f8f859cab575b65d914c98b5e13.tar.gz rneovim-837f31c0b48f1f8f859cab575b65d914c98b5e13.tar.bz2 rneovim-837f31c0b48f1f8f859cab575b65d914c98b5e13.zip |
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
-rw-r--r-- | test/functional/ui/screen.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 0e3b903398..12abfb2ad9 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -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 '�' or ' ') row[i].attrs = self._clear_attrs end end |