# HG changeset patch # User Bram Moolenaar # Date 1575225903 -3600 # Node ID 5da1ad9165f0705768bf194fbf75a00d68dac680 # Parent 4f4cad8cef6446654850f25821d0065b8e291c7e patch 8.1.2377: GUI: when losing focus a pending operator is executed Commit: https://github.com/vim/vim/commit/fa5612c7d836eb789e0f8ff4b10461b8640a14b2 Author: Bram Moolenaar Date: Sun Dec 1 19:37:07 2019 +0100 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 https://github.com/vim/vim/issues/5300) diff --git a/src/normal.c b/src/normal.c --- a/src/normal.c +++ b/src/normal.c @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2377, +/**/ 2376, /**/ 2375,