From: Daniel Carl <danielcarl@gmx.de>
Date: Sat, 10 Nov 2012 14:45:22 +0000 (+0100)
Subject: Set completion box to null after destroying it.
X-Git-Url: https://git.owens.tech/dummy.html/dummy.html/git?a=commitdiff_plain;h=10829e1a3e6f144d3a2f34634bb277b3848885b1;p=vimb.git

Set completion box to null after destroying it.
---

diff --git a/src/completion.c b/src/completion.c
index af76213..166e173 100644
--- a/src/completion.c
+++ b/src/completion.c
@@ -81,6 +81,7 @@ void completion_clean(void)
 
     if (vp.gui.compbox) {
         gtk_widget_destroy(vp.gui.compbox);
+        vp.gui.compbox = NULL;
     }
     vp.comps.completions = NULL;
     vp.comps.active = NULL;