comparison src/main.c @ 28133:373f1afadfa3 v8.2.4591

patch 8.2.4591: cursor line not updated when a callback moves the cursor Commit: https://github.com/vim/vim/commit/e7a74d53754765f22ef8ce71c915bb669d5f7f3f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 19 11:10:15 2022 +0000 patch 8.2.4591: cursor line not updated when a callback moves the cursor Problem: Cursor line not updated when a callback moves the cursor. Solution: Check if the cursor moved. (closes https://github.com/vim/vim/issues/9970)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Mar 2022 12:15:04 +0100
parents 41a61dbb46d2
children c99005ffa8c3
comparison
equal deleted inserted replaced
28132:a4c48c2beb9f 28133:373f1afadfa3
1384 update_topline(); 1384 update_topline();
1385 validate_cursor(); 1385 validate_cursor();
1386 1386
1387 #ifdef FEAT_SYN_HL 1387 #ifdef FEAT_SYN_HL
1388 // Might need to update for 'cursorline'. 1388 // Might need to update for 'cursorline'.
1389 // When 'cursorlineopt' is "screenline" need to redraw always. 1389 check_redraw_cursorline();
1390 if (curwin->w_p_cul
1391 && (curwin->w_last_cursorline != curwin->w_cursor.lnum
1392 || (curwin->w_p_culopt_flags & CULOPT_SCRLINE))
1393 && !char_avail())
1394 redraw_later(VALID);
1395 #endif 1390 #endif
1396 if (VIsual_active) 1391 if (VIsual_active)
1397 update_curbuf(INVERTED); // update inverted part 1392 update_curbuf(INVERTED); // update inverted part
1398 else if (must_redraw) 1393 else if (must_redraw)
1399 { 1394 {