Patch 8.1.2377
Problem:    GUI: when losing focus a pending operator is executed.
Solution:   Do not execute an operator when getting K_IGNORE. (closes #5300)
Files:      src/normal.c


*** ../vim-8.1.2376/src/normal.c        2019-11-17 17:06:25.824081732 +0100
--- src/normal.c        2019-12-01 19:33:22.744955140 +0100
***************
*** 1099,1107 ****
        old_mapped_len = typebuf_maplen();
  
      /*
!      * If an operation is pending, handle it...
       */
!     do_pending_operator(&ca, old_col, FALSE);
  
      /*
       * Wait for a moment when a message is displayed that will be overwritten
--- 1099,1108 ----
        old_mapped_len = typebuf_maplen();
  
      /*
!      * If an operation is pending, handle it.  But not for K_IGNORE.
       */
!     if (ca.cmdchar != K_IGNORE)
!       do_pending_operator(&ca, old_col, FALSE);
  
      /*
       * Wait for a moment when a message is displayed that will be overwritten
*** ../vim-8.1.2376/src/version.c       2019-12-01 18:58:07.614835593 +0100
--- src/version.c       2019-12-01 19:31:24.129252075 +0100
***************
*** 744,745 ****
--- 744,747 ----
  {   /* Add new patch number below this line */
+ /**/
+     2377,
  /**/

-- 
"Hit any key to continue" it said, but nothing happened after F sharp.

 /// 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/201912011837.xB1IbWR7029231%40masaka.moolenaar.net.

Raspunde prin e-mail lui