diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-27 05:27:31 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-05-02 13:11:47 +0200 |
commit | 5e4df766f6e428659221f8eae144e9ed18574f8d (patch) | |
tree | 4e06071a57a88ef1725e05f9526417f5291bd3ce /src/nvim/ex_getln.c | |
parent | 88d13d2778a4fab3fdcc2bf4c1adf631b38ea3ce (diff) | |
download | rneovim-5e4df766f6e428659221f8eae144e9ed18574f8d.tar.gz rneovim-5e4df766f6e428659221f8eae144e9ed18574f8d.tar.bz2 rneovim-5e4df766f6e428659221f8eae144e9ed18574f8d.zip |
vim-patch:9.0.0892: may redraw when not needed
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 vim/vim#11559)
https://github.com/vim/vim/commit/f32fb93e431e4db95a8663d86dfeb6bffa5896f6
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 5018c9268b..af2ec3356f 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -504,6 +504,7 @@ static void may_do_incsearch_highlighting(int firstc, long count, incsearch_stat } validate_cursor(); + // May redraw the status line to show the cursor position. if (p_ru && (curwin->w_status_height > 0 || global_stl_height() > 0)) { curwin->w_redr_status = true; @@ -598,6 +599,7 @@ static void finish_incsearch_highlighting(int gotesc, incsearch_state_T *s, bool magic_overruled = s->magic_overruled_save; validate_cursor(); // needed for TAB + status_redraw_all(); redraw_all_later(UPD_SOME_VALID); if (call_update_screen) { update_screen(); |