diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-16 17:22:32 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-22 08:54:37 -0300 |
commit | f08fe552f463475f60444fc7f9df982e8f81baf0 (patch) | |
tree | a06f7c1251b8bc9aba6056d715ea98d63913b48c | |
parent | d550eecf7092397d064df26850d4a09d9ab4a481 (diff) | |
download | rneovim-f08fe552f463475f60444fc7f9df982e8f81baf0.tar.gz rneovim-f08fe552f463475f60444fc7f9df982e8f81baf0.tar.bz2 rneovim-f08fe552f463475f60444fc7f9df982e8f81baf0.zip |
test: Fix screen.lua eol_clear method.
-rw-r--r-- | test/functional/ui/screen.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 105e43843c..27e5900338 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -219,7 +219,7 @@ end function Screen:_handle_eol_clear() local row, col = self._cursor.row, self._cursor.col - self:_clear_block(row, 1, col, self._scroll_region.right - col) + self:_clear_block(row, row, col, self._scroll_region.right) end function Screen:_handle_cursor_goto(row, col) @@ -330,9 +330,9 @@ function Screen:_handle_set_icon(icon) self.icon = icon end -function Screen:_clear_block(top, lines, left, columns) - for i = top, top + lines - 1 do - self:_clear_row_section(i, left, left + columns - 1) +function Screen:_clear_block(top, bot, left, right) + for i = top, bot do + self:_clear_row_section(i, left, right) end end |