changeset 30491:729e2305f4b2 v9.0.0581

patch 9.0.0581: adding a character for incsearch fails at end of line Commit: https://github.com/vim/vim/commit/d4566c14e71c55dcef05fb34ea94eba835831527 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 24 21:06:39 2022 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Sep 2022 22:15:03 +0200
parents a49f7a770f04
children e1816c2fad0c
files src/move.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/move.c
+++ b/src/move.c
@@ -683,7 +683,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);
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    581,
+/**/
     580,
 /**/
     579,