Patch 8.2.0397
Problem:    Delayed screen update when using undo from Insert mode.
Solution:   Update w_topline and cursor shape before sleeping. (closes #5790)
Files:      src/normal.c


*** ../vim-8.2.0396/src/normal.c        2020-02-21 21:30:33.867979726 +0100
--- src/normal.c        2020-03-16 22:08:25.405575487 +0100
***************
*** 1154,1160 ****
  
            kmsg = keep_msg;
            keep_msg = NULL;
!           // showmode() will clear keep_msg, but we want to use it anyway
            update_screen(0);
            // now reset it, otherwise it's put in the history again
            keep_msg = kmsg;
--- 1154,1162 ----
  
            kmsg = keep_msg;
            keep_msg = NULL;
!           // Showmode() will clear keep_msg, but we want to use it anyway.
!           // First update w_topline.
!           setcursor();
            update_screen(0);
            // now reset it, otherwise it's put in the history again
            keep_msg = kmsg;
***************
*** 1167,1172 ****
--- 1169,1177 ----
            }
        }
        setcursor();
+ #ifdef CURSOR_SHAPE
+       ui_cursor_shape();              // may show different cursor shape
+ #endif
        cursor_on();
        out_flush();
        if (msg_scroll || emsg_on_display)
***************
*** 1280,1286 ****
  #endif
  
  /*
!  * Check if  highlighting for visual mode is possible, give a warning message
   * if not.
   */
      void
--- 1285,1291 ----
  #endif
  
  /*
!  * Check if highlighting for Visual mode is possible, give a warning message
   * if not.
   */
      void
*** ../vim-8.2.0396/src/version.c       2020-03-16 21:25:16.998615353 +0100
--- src/version.c       2020-03-16 22:07:38.773740550 +0100
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     397,
  /**/

-- 
       Bravely bold Sir Robin, rode forth from Camelot,
       He was not afraid to die, Oh Brave Sir Robin,
       He was not at all afraid to be killed in nasty ways
       Brave, brave, brave, brave Sir Robin.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/202003162109.02GL9Dqj002400%40masaka.moolenaar.net.

Raspunde prin e-mail lui