mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.1.2377: GUI: when losing focus a pending operator is executed
Problem: GUI: when losing focus a pending operator is executed. Solution: Do not execute an operator when getting K_IGNORE. (closes #5300)
This commit is contained in:
@@ -1099,9 +1099,10 @@ getcount:
|
||||
old_mapped_len = typebuf_maplen();
|
||||
|
||||
/*
|
||||
* If an operation is pending, handle it...
|
||||
* If an operation is pending, handle it. But not for K_IGNORE.
|
||||
*/
|
||||
do_pending_operator(&ca, old_col, FALSE);
|
||||
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
|
||||
|
Reference in New Issue
Block a user