]> granicus.if.org Git - vim/commitdiff
patch 9.0.0581: adding a character for incsearch fails at end of line v9.0.0581
authorBram Moolenaar <Bram@vim.org>
Sat, 24 Sep 2022 20:06:39 +0000 (21:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 24 Sep 2022 20:06:39 +0000 (21:06 +0100)
Problem:    Adding a character for incsearch fails at end of line.
Solution:   Only check cursor line number.

src/move.c
src/version.c

index 967dd77fb971a3e3b0a476998d58f35a7f20b423..8a8af9a4e9b93202f48c3eb0b987f388d1e7a279 100644 (file)
@@ -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);
index eb6ad8701b7b4e722dff212290f34750f38fd1e4..0acc0d40651a8fdf095c6f01076f0cc671056f8b 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    581,
 /**/
     580,
 /**/