Skip to content

Commit 95dde69

Browse files
committed
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 <ike.devolder@gmail.com>
1 parent 5ed4e13 commit 95dde69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/python/vdebug/ui/vimui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def create(self):
354354

355355
def destroy(self):
356356
""" destroy window """
357-
if not self.is_open or len(dir(self.buffer)) == 0:
357+
if self.buffer == None or len(dir(self.buffer)) == 0:
358358
return
359359
self.is_open = False
360360
if int(vim.eval('buffer_exists("'+self.name+'")')) == 1:

0 commit comments

Comments
 (0)