diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-19 11:10:15 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-19 11:10:15 +0000 |
commit | e7a74d53754765f22ef8ce71c915bb669d5f7f3f (patch) | |
tree | 535427e0114c148aba4aac41987d3ae7aab18cb3 /src/main.c | |
parent | 2995e5cf4eb9651827788e14f9f42ab34ce4c7e1 (diff) |
patch 8.2.4591: cursor line not updated when a callback moves the cursorv8.2.4591
Problem: Cursor line not updated when a callback moves the cursor.
Solution: Check if the cursor moved. (closes #9970)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c index 80cff7cab7..7e8cbf08ea 100644 --- a/src/main.c +++ b/src/main.c @@ -1386,12 +1386,7 @@ main_loop( #ifdef FEAT_SYN_HL // Might need to update for 'cursorline'. - // When 'cursorlineopt' is "screenline" need to redraw always. - if (curwin->w_p_cul - && (curwin->w_last_cursorline != curwin->w_cursor.lnum - || (curwin->w_p_culopt_flags & CULOPT_SCRLINE)) - && !char_avail()) - redraw_later(VALID); + check_redraw_cursorline(); #endif if (VIsual_active) update_curbuf(INVERTED); // update inverted part |