summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-17 11:34:38 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-17 11:34:38 +0000
commitf32fb93e431e4db95a8663d86dfeb6bffa5896f6 (patch)
tree0a87094dbced6a22a56f90e272662374a35f6ff7 /src/ex_getln.c
parentfc1b2d0961ad963e6337c25efe082f4c526aca5e (diff)
patch 9.0.0892: may redraw when not neededv9.0.0892
Problem: May redraw when not needed, causing slow scrolling. Solution: Do not redraw when w_skipcol doesn't change. When w_skipcol changes only redraw from the top. (issue #11559)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index d3119baf25..72f2a3aabf 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -393,6 +393,7 @@ finish_incsearch_highlighting(
magic_overruled = is_state->magic_overruled_save;
validate_cursor(); // needed for TAB
+ status_redraw_all();
redraw_all_later(UPD_SOME_VALID);
if (call_update_screen)
update_screen(UPD_SOME_VALID);
@@ -559,6 +560,7 @@ may_do_incsearch_highlighting(
}
validate_cursor();
+
// May redraw the status line to show the cursor position.
if (p_ru && curwin->w_status_height > 0)
curwin->w_redr_status = TRUE;