comparison src/getchar.c @ 18231:25535ef50842 v8.1.2110

patch 8.1.2110: CTRL-C closes two popups instead of one Commit: https://github.com/vim/vim/commit/e8a7dfedfc8ea5c376c7912cb27a9405e4b8c972 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 3 22:35:52 2019 +0200 patch 8.1.2110: CTRL-C closes two popups instead of one Problem: CTRL-C closes two popups instead of one. Solution: Reset got_int when the filter consumed the key.
author Bram Moolenaar <Bram@vim.org>
date Thu, 03 Oct 2019 22:45:03 +0200
parents f31b0ac6e175
children c8a53c0daeed
comparison
equal deleted inserted replaced
18230:2a3de4cd6acb 18231:25535ef50842
1789 ui_remove_balloon(); 1789 ui_remove_balloon();
1790 } 1790 }
1791 #endif 1791 #endif
1792 #ifdef FEAT_TEXT_PROP 1792 #ifdef FEAT_TEXT_PROP
1793 if (popup_do_filter(c)) 1793 if (popup_do_filter(c))
1794 {
1795 if (c == Ctrl_C)
1796 got_int = FALSE; // avoid looping
1794 c = K_IGNORE; 1797 c = K_IGNORE;
1798 }
1795 #endif 1799 #endif
1796 1800
1797 // Need to process the character before we know it's safe to do something 1801 // Need to process the character before we know it's safe to do something
1798 // else. 1802 // else.
1799 if (c != K_IGNORE) 1803 if (c != K_IGNORE)