0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2022-09-24 21:06:39 +01:00
parent 1d61408af3
commit d4566c14e7
2 changed files with 3 additions and 1 deletions

View File

@@ -683,7 +683,7 @@ cursor_valid(void)
void void
validate_cursor(void) validate_cursor(void)
{ {
check_cursor(); check_cursor_lnum();
check_cursor_moved(curwin); check_cursor_moved(curwin);
if ((curwin->w_valid & (VALID_WCOL|VALID_WROW)) != (VALID_WCOL|VALID_WROW)) if ((curwin->w_valid & (VALID_WCOL|VALID_WROW)) != (VALID_WCOL|VALID_WROW))
curs_columns(TRUE); curs_columns(TRUE);

View File

@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
581,
/**/ /**/
580, 580,
/**/ /**/