Mercurial > vim
comparison src/misc2.c @ 20384:42ab4d40e78f v8.2.0747
patch 8.2.0747: cannot forcefully close all popups
Commit: https://github.com/vim/vim/commit/03a9f848175b182372fb33403998059724a8bf31
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 13 13:40:16 2020 +0200
patch 8.2.0747: cannot forcefully close all popups
Problem: Cannot forcefully close all popups.
Solution: Add the "force" argument to popup_clear(). Use it after running a
test. Put back the check for a popup when editing a file.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 13 May 2020 13:45:04 +0200 |
parents | 79c870b68cf3 |
children | 4c317d8c1051 |
comparison
equal
deleted
inserted
replaced
20383:1ebebb9b62e7 | 20384:42ab4d40e78f |
---|---|
1067 # endif | 1067 # endif |
1068 | 1068 |
1069 # if defined(FEAT_BEVAL_TERM) | 1069 # if defined(FEAT_BEVAL_TERM) |
1070 ui_remove_balloon(); | 1070 ui_remove_balloon(); |
1071 # endif | 1071 # endif |
1072 # if defined(FEAT_PROP_POPUP) | 1072 # ifdef FEAT_PROP_POPUP |
1073 if (curwin != NULL) | 1073 if (curwin != NULL) |
1074 { | 1074 close_all_popups(TRUE); |
1075 while (popup_is_popup(curwin)) | |
1076 popup_close_with_retval(curwin, 0); | |
1077 close_all_popups(); | |
1078 } | |
1079 # endif | 1075 # endif |
1080 | 1076 |
1081 // Clear user commands (before deleting buffers). | 1077 // Clear user commands (before deleting buffers). |
1082 ex_comclear(NULL); | 1078 ex_comclear(NULL); |
1083 | 1079 |