From 9562b0a2e8c353d2aff407896225c2251c3f5904 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Sat, 26 Apr 2025 11:33:24 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20cursor=20location=20redrawing=20in=20incr?= =?UTF-8?q?emental=20search=20(=C2=A8XS):=20backtracking=20using=20backspa?= =?UTF-8?q?ce/rubout=20over=20several=20forward-search=20(^S).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- isearch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/isearch.c b/isearch.c index 6d984b1..5c9d841 100644 --- a/isearch.c +++ b/isearch.c @@ -263,6 +263,7 @@ static BINDABLE( isearch) { cmd_buff[--cmd_offset] = '\0'; /* Yes, delete last char */ curwp->w_dotp = curline; /* Reset the line pointer */ curwp->w_doto = curoff; /* and the offset */ + curwp->w_flag |= WFMOVE ; /* Say we've moved */ n = init_direction; /* Reset the search direction */ mystrscpy( pat, pat_save, sizeof pat) ; /* Restore the old search str */ cmd_reexecute = 0; /* Start the whole mess over */