diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-12-12 16:05:52 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-01-10 21:41:31 -0300 |
commit | 209b5ed6ba76fe28c5ec7e1c7b38f77c1fa53250 (patch) | |
tree | da237497be7a716d4fe1daf16595e70c39c0ffce /test/functional/ui/screen.lua | |
parent | a684cc175a6c1ca2cfc3bff2d68383d32008cb3b (diff) | |
download | rneovim-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.lua | 2 |
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) |