Mercurial > vim
comparison src/popupwin.c @ 21373:3d73cdd173ab v8.2.1237
patch 8.2.1237: changing 'completepopup' after opening popup has no effect
Commit: https://github.com/vim/vim/commit/447bfba24b231777a79bf53cdb33f44d9691e47e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 18 16:07:16 2020 +0200
patch 8.2.1237: changing 'completepopup' after opening popup has no effect
Problem: Changing 'completepopup' after opening a popup has no effect. (Jay
Sitter)
Solution: Close the popup when the options are changed. (closes #6471)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 18 Jul 2020 16:15:04 +0200 |
parents | e562f5d1e2a4 |
children | 47f25a0c5a42 |
comparison
equal
deleted
inserted
replaced
21372:86c5173b29b1 | 21373:3d73cdd173ab |
---|---|
4029 win_T *wp = popup_find_info_window(); | 4029 win_T *wp = popup_find_info_window(); |
4030 | 4030 |
4031 if (wp != NULL) | 4031 if (wp != NULL) |
4032 popup_hide(wp); | 4032 popup_hide(wp); |
4033 } | 4033 } |
4034 | |
4035 /* | |
4036 * Close any info popup. | |
4037 */ | |
4038 void | |
4039 popup_close_info(void) | |
4040 { | |
4041 win_T *wp = popup_find_info_window(); | |
4042 | |
4043 if (wp != NULL) | |
4044 popup_close_with_retval(wp, -1); | |
4045 } | |
4034 #endif | 4046 #endif |
4035 | 4047 |
4036 /* | 4048 /* |
4037 * Close any popup for a text property associated with "win". | 4049 * Close any popup for a text property associated with "win". |
4038 * Return TRUE if a popup was closed. | 4050 * Return TRUE if a popup was closed. |