mirror of
https://github.com/neovim/neovim.git
synced 2025-11-16 15:21:20 +00:00
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)
This commit is contained in:
@@ -190,7 +190,7 @@ end
|
|||||||
|
|
||||||
function Screen:_handle_eol_clear()
|
function Screen:_handle_eol_clear()
|
||||||
local row, col = self._cursor.row, self._cursor.col
|
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
|
end
|
||||||
|
|
||||||
function Screen:_handle_cursor_goto(row, col)
|
function Screen:_handle_cursor_goto(row, col)
|
||||||
|
|||||||
Reference in New Issue
Block a user