From 209b5ed6ba76fe28c5ec7e1c7b38f77c1fa53250 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 12 Dec 2014 16:05:52 -0300 Subject: 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) --- test/functional/ui/screen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 8e7d1ed798..7917fff1e7 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -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) -- cgit