Mercurial > vim
comparison src/normal.c @ 15697:b7a88676e81c v8.1.0856
patch 8.1.0856: when scrolling a window the cursorline is not always updated
commit https://github.com/vim/vim/commit/bbb5f8d4c2cbc5f48556008875f57cbe7fc4ac6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 31 13:22:32 2019 +0100
patch 8.1.0856: when scrolling a window the cursorline is not always updated
Problem: When scrolling a window other than the current one the cursorline
highlighting is not always updated. (Jason Franklin)
Solution: Call redraw_for_cursorline() after scrolling. Only set
w_last_cursorline when drawing the cursor line. Reset the lines
to be redrawn also when redrawing the whole window.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 31 Jan 2019 13:30:07 +0100 |
parents | 6f1c7e9a6393 |
children | ad8b2c109b22 |
comparison
equal
deleted
inserted
replaced
15696:2cc75ec8bda2 | 15697:b7a88676e81c |
---|---|
4585 | 4585 |
4586 gui_do_horiz_scroll(val, TRUE); | 4586 gui_do_horiz_scroll(val, TRUE); |
4587 } | 4587 } |
4588 } | 4588 } |
4589 # endif | 4589 # endif |
4590 # ifdef FEAT_SYN_HL | |
4591 if (curwin != old_curwin && curwin->w_p_cul) | |
4592 redraw_for_cursorline(curwin); | |
4593 # endif | |
4590 | 4594 |
4591 curwin->w_redr_status = TRUE; | 4595 curwin->w_redr_status = TRUE; |
4592 | 4596 |
4593 curwin = old_curwin; | 4597 curwin = old_curwin; |
4594 curbuf = curwin->w_buffer; | 4598 curbuf = curwin->w_buffer; |