From fa5612c7d836eb789e0f8ff4b10461b8640a14b2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 1 Dec 2019 19:37:07 +0100 Subject: [PATCH] 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) --- src/normal.c | 5 +++-- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/normal.c b/src/normal.c index 363f539c7..ca2a48c08 100644 --- 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 index 036a4bd69..4d50222d2 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2377, /**/ 2376, /**/ -- 2.50.1