diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-22 09:17:49 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-22 09:17:49 -0300 |
commit | 8d51d7e7a75c8807ddc2190e7a9b7f7350f5071a (patch) | |
tree | 35cd7a91e0ee8ffce2546c22f55fa6b9f671bb4e /test/functional/ui/screen.lua | |
parent | d550eecf7092397d064df26850d4a09d9ab4a481 (diff) | |
parent | 3f0983e4006dee3b533ae1be87a662851b65bb69 (diff) | |
download | rneovim-8d51d7e7a75c8807ddc2190e7a9b7f7350f5071a.tar.gz rneovim-8d51d7e7a75c8807ddc2190e7a9b7f7350f5071a.tar.bz2 rneovim-8d51d7e7a75c8807ddc2190e7a9b7f7350f5071a.zip |
Merge PR #1863 'Fix tests for plain lua'
Diffstat (limited to 'test/functional/ui/screen.lua')
-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 |