From 1ccbd94beec5c1f5d91b0b084062afa7908dd69e Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 12 Dec 2014 16:05:52 -0300 Subject: test: Fix clear/eol_clear in screen.lua These functions need to operate on the current the scroll region. --- test/functional/ui/screen.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 8e7d1ed798..c8eea38386 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -185,12 +185,13 @@ function Screen:_handle_resize(width, height) end function Screen:_handle_clear() - self:_clear_block(1, self._height, 1, self._width) + self:_clear_block(self._scroll_region.top, self._scroll_region.bot, + self._scroll_region.left, self._scroll_region.right) 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