diff 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
line wrap: on
line diff
--- 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
 
 /*