From 95dde690928fdc57df6e7df2c32860dd0ae010d6 Mon Sep 17 00:00:00 2001 From: BlackEagle Date: Tue, 1 Sep 2015 13:27:24 +0200 Subject: [PATCH] Debugger* buffers are not deleted on close When the debugging session is done and you close the debugger tab in vim, the Debugger* buffers are just hidden, not deleted. Change the check in the Window class back to 'self.buffer == None' from 'not self.is_open' to bail out of the destroy method. fixes #225 Signed-off-by: BlackEagle --- plugin/python/vdebug/ui/vimui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/python/vdebug/ui/vimui.py b/plugin/python/vdebug/ui/vimui.py index fdadbc86..6e9ab927 100644 --- a/plugin/python/vdebug/ui/vimui.py +++ b/plugin/python/vdebug/ui/vimui.py @@ -354,7 +354,7 @@ def create(self): def destroy(self): """ destroy window """ - if not self.is_open or len(dir(self.buffer)) == 0: + if self.buffer == None or len(dir(self.buffer)) == 0: return self.is_open = False if int(vim.eval('buffer_exists("'+self.name+'")')) == 1: