fix(cmdline): don't send invalid cursor with incsearch and cmdheight=0

fixes #20306
This commit is contained in:
bfredl
2022-09-26 11:40:06 +02:00
parent fe045bfd5f
commit be72af2f9b
3 changed files with 51 additions and 6 deletions

View File

@@ -769,6 +769,7 @@ end
function Screen:_handle_grid_cursor_goto(grid, row, col)
self._cursor.grid = grid
assert(row >= 0 and col >= 0)
self._cursor.row = row + 1
self._cursor.col = col + 1
end