diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-18 16:07:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-18 16:07:16 +0200 |
commit | 447bfba24b231777a79bf53cdb33f44d9691e47e (patch) | |
tree | c7b93c13916357e83760dfa20eb9027225e1c805 /src/popupwin.c | |
parent | e859312e748297bde67a053fd3c486fc2c14b532 (diff) | |
download | vim-git-447bfba24b231777a79bf53cdb33f44d9691e47e.tar.gz |
patch 8.2.1237: changing 'completepopup' after opening popup has no effectv8.2.1237
Problem: Changing 'completepopup' after opening a popup has no effect. (Jay
Sitter)
Solution: Close the popup when the options are changed. (closes #6471)
Diffstat (limited to 'src/popupwin.c')
-rw-r--r-- | src/popupwin.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/popupwin.c b/src/popupwin.c index 296441b11..b0b4737c7 100644 --- a/src/popupwin.c +++ b/src/popupwin.c @@ -4031,6 +4031,18 @@ popup_hide_info(void) if (wp != NULL) popup_hide(wp); } + +/* + * Close any info popup. + */ + void +popup_close_info(void) +{ + win_T *wp = popup_find_info_window(); + + if (wp != NULL) + popup_close_with_retval(wp, -1); +} #endif /* |