comparison src/normal.c @ 18775:5da1ad9165f0 v8.1.2377

patch 8.1.2377: GUI: when losing focus a pending operator is executed Commit: https://github.com/vim/vim/commit/fa5612c7d836eb789e0f8ff4b10461b8640a14b2 Author: Bram Moolenaar <Bram@vim.org> 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Dec 2019 19:45:03 +0100
parents bbea1f108187
children 7982f65d8f54
comparison
equal deleted inserted replaced
18774:4f4cad8cef64 18775:5da1ad9165f0
1097 * character or "z333<cr>". */ 1097 * character or "z333<cr>". */
1098 if (old_mapped_len > 0) 1098 if (old_mapped_len > 0)
1099 old_mapped_len = typebuf_maplen(); 1099 old_mapped_len = typebuf_maplen();
1100 1100
1101 /* 1101 /*
1102 * If an operation is pending, handle it... 1102 * If an operation is pending, handle it. But not for K_IGNORE.
1103 */ 1103 */
1104 do_pending_operator(&ca, old_col, FALSE); 1104 if (ca.cmdchar != K_IGNORE)
1105 do_pending_operator(&ca, old_col, FALSE);
1105 1106
1106 /* 1107 /*
1107 * Wait for a moment when a message is displayed that will be overwritten 1108 * Wait for a moment when a message is displayed that will be overwritten
1108 * by the mode message. 1109 * by the mode message.
1109 * In Visual mode and with "^O" in Insert mode, a short message will be 1110 * In Visual mode and with "^O" in Insert mode, a short message will be