To: vim_dev@googlegroups.com Subject: Patch 9.0.1451 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1451 Problem: Unnecessary redrawing when 'showcmdloc' is not "last". Solution: Redraw later when "showcmd_is_clear" is set. (Luuk van Baal, closes #12260) Files: src/normal.c *** ../vim-9.0.1450/src/normal.c 2023-03-05 21:15:02.456536894 +0000 --- src/normal.c 2023-04-13 21:44:07.329859487 +0100 *************** *** 913,919 **** msg_col = 0; } ! old_pos = curwin->w_cursor; // remember where cursor was // When 'keymodel' contains "startsel" some keys start Select/Visual // mode. --- 913,919 ---- msg_col = 0; } ! old_pos = curwin->w_cursor; // remember where the cursor was // When 'keymodel' contains "startsel" some keys start Select/Visual // mode. *************** *** 1803,1811 **** cursor_off(); if (*p_sloc == 's') ! win_redr_status(curwin, FALSE); else if (*p_sloc == 't') ! draw_tabline(); else // 'showcmdloc' is "last" or empty { if (!showcmd_is_clear) --- 1803,1821 ---- cursor_off(); if (*p_sloc == 's') ! { ! if (showcmd_is_clear) ! curwin->w_redr_status = TRUE; ! else ! win_redr_status(curwin, FALSE); ! } else if (*p_sloc == 't') ! { ! if (showcmd_is_clear) ! redraw_tabline = TRUE; ! else ! draw_tabline(); ! } else // 'showcmdloc' is "last" or empty { if (!showcmd_is_clear) *** ../vim-9.0.1450/src/version.c 2023-04-13 19:15:50.027391986 +0100 --- src/version.c 2023-04-13 21:46:26.845427992 +0100 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1451, /**/ -- I just planted an Algebra tree. It has square roots. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///