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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20230413204943.856871C0A7C%40moolenaar.net.

Raspunde prin e-mail lui