From d4566c14e71c55dcef05fb34ea94eba835831527 Mon Sep 17 00:00:00 2001
From: Bram Moolenaar <Bram@vim.org>
Date: Sat, 24 Sep 2022 21:06:39 +0100
Subject: [PATCH] patch 9.0.0581: adding a character for incsearch fails at end
 of line

Problem:    Adding a character for incsearch fails at end of line.
Solution:   Only check cursor line number.
---
 src/move.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/move.c b/src/move.c
index 6c654ac..4123ca8 100644
--- a/src/move.c
+++ b/src/move.c
@@ -652,7 +652,7 @@ cursor_valid(void)
     void
 validate_cursor(void)
 {
-    check_cursor();
+    check_cursor_lnum();
     check_cursor_moved(curwin);
     if ((curwin->w_valid & (VALID_WCOL|VALID_WROW)) != (VALID_WCOL|VALID_WROW))
 	curs_columns(TRUE);
-- 
2.27.0

