diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2019-01-13 12:10:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-13 12:10:26 +0100 |
| commit | a7fc01a532e753e2f5a7d0f2b8f670144d78a878 (patch) | |
| tree | 36060b7fdfb919a7f36faf0dad9790a95088c0e7 /src/nvim/move.c | |
| parent | 424388c207eaf6b5f564ff8247b5800ab337bc56 (diff) | |
| parent | 23c71d5182a5e717c3a1852d9d3c90e81b4735fd (diff) | |
| download | rneovim-a7fc01a532e753e2f5a7d0f2b8f670144d78a878.tar.gz rneovim-a7fc01a532e753e2f5a7d0f2b8f670144d78a878.tar.bz2 rneovim-a7fc01a532e753e2f5a7d0f2b8f670144d78a878.zip | |
Merge pull request #9492 from bfredl/cul_cole
redraw: share more code between cursorline and conceal redraws. Add tests for conceal cursor
Diffstat (limited to 'src/nvim/move.c')
| -rw-r--r-- | src/nvim/move.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index f2c8996050..07b355e603 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -105,14 +105,14 @@ void reset_cursorline(void) // Redraw when w_cline_row changes and 'relativenumber' or 'cursorline' is set. static void redraw_for_cursorline(win_T *wp) { - if ((wp->w_p_rnu || wp->w_p_cul) + if ((wp->w_p_rnu || win_cursorline_standout(wp)) && (wp->w_valid & VALID_CROW) == 0 && !pum_visible()) { if (wp->w_p_rnu) { // win_line() will redraw the number column only. redraw_win_later(wp, VALID); } - if (wp->w_p_cul) { + if (win_cursorline_standout(wp)) { if (wp->w_redr_type <= VALID && wp->w_last_cursorline != 0) { // "w_last_cursorline" may be outdated, worst case we redraw // too much. This is optimized for moving the cursor around in @@ -2207,7 +2207,7 @@ void do_check_cursorbind(void) int restart_edit_save = restart_edit; restart_edit = true; check_cursor(); - if (curwin->w_p_cul || curwin->w_p_cuc) { + if (win_cursorline_standout(curwin) || curwin->w_p_cuc) { validate_cursor(); } restart_edit = restart_edit_save; |