diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-01 19:37:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-01 19:37:07 +0100 |
commit | fa5612c7d836eb789e0f8ff4b10461b8640a14b2 (patch) | |
tree | 0e4040ebe80a7fd8690e409ba4d416fbfea5e207 /src/normal.c | |
parent | 912bc4a51af0ad947cb39deba2a6fa4ee27af906 (diff) | |
download | vim-git-fa5612c7d836eb789e0f8ff4b10461b8640a14b2.tar.gz |
patch 8.1.2377: GUI: when losing focus a pending operator is executedv8.1.2377
Problem: GUI: when losing focus a pending operator is executed.
Solution: Do not execute an operator when getting K_IGNORE. (closes #5300)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 5 |
1 files changed, 3 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 |