diff --git a/python3/vdebug/ui/vimui.py b/python3/vdebug/ui/vimui.py index 47de27e..641f397 100644 --- a/python3/vdebug/ui/vimui.py +++ b/python3/vdebug/ui/vimui.py @@ -586,7 +586,8 @@ def create(self, open_cmd): self.creation_count += 1 if self.creation_count == 1: - cmd = 'autocmd Vdebug BufWinLeave %s' % self.name + cmd = 'autocmd Vdebug BufWinLeave %s silent! bdelete %s' \ + % (self.name, self.name) cmd += ' python3 debugger.mark_window_as_closed("%s")' % self.name vim.command(cmd)