test: Fix eol_clear in screen.lua

It should only clear to the end of the current scroll region(this is the
behavior expected by nvim)
This commit is contained in:
Thiago de Arruda 2014-12-12 16:05:52 -03:00
parent a684cc175a
commit 209b5ed6ba

View File

@ -190,7 +190,7 @@ end
function Screen:_handle_eol_clear()
local row, col = self._cursor.row, self._cursor.col
self:_clear_block(row, 1, col, self._width - col)
self:_clear_block(row, 1, col, self._scroll_region.right - col)
end
function Screen:_handle_cursor_goto(row, col)