aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-12 16:05:52 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-10 21:41:31 -0300
commit209b5ed6ba76fe28c5ec7e1c7b38f77c1fa53250 (patch)
treeda237497be7a716d4fe1daf16595e70c39c0ffce /test/functional/ui/screen.lua
parenta684cc175a6c1ca2cfc3bff2d68383d32008cb3b (diff)
downloadrneovim-209b5ed6ba76fe28c5ec7e1c7b38f77c1fa53250.tar.gz
rneovim-209b5ed6ba76fe28c5ec7e1c7b38f77c1fa53250.tar.bz2
rneovim-209b5ed6ba76fe28c5ec7e1c7b38f77c1fa53250.zip
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)
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua2
1 files changed, 1 insertions, 1 deletions
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)