Skip to content

Commit 88e0826

Browse files
Merge pull request #483 from vim-vdebug/451-error-closing-breakpoint-window
451 error closing breakpoint window
2 parents 2aa277c + 9096fc1 commit 88e0826

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎python3/vdebug/ui/vimui.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ def __init__(self):
158158
'DebuggerStatus': 'vertical leftabove new'
159159
},
160160
'window_size': {
161-
'DebuggerWatch': { 'height' : 15 },
162-
'DebuggerStatus': { 'height' : 1 }
161+
'DebuggerWatch': {'height': 15},
162+
'DebuggerStatus': {'height': 1}
163163
},
164164
'window_arrangement': [
165165
'DebuggerWatch',
@@ -586,7 +586,8 @@ def create(self, open_cmd):
586586
self.creation_count += 1
587587

588588
if self.creation_count == 1:
589-
cmd = 'autocmd Vdebug BufWinLeave %s' % self.name
589+
cmd = 'autocmd Vdebug BufWinLeave %s silent! bdelete %s' \
590+
% (self.name, self.name)
590591
cmd += ' python3 debugger.mark_window_as_closed("%s")' % self.name
591592
vim.command(cmd)
592593

@@ -597,7 +598,6 @@ def destroy(self, wipeout=True):
597598
if self._buffer is None:
598599
return
599600
self.is_open = False
600-
self._buffer = HiddenBuffer(self._buffer.contents())
601601
if wipeout and int(vim.eval('buffer_exists("%s")' % self.name)) == 1:
602602
vim.command('bwipeout %s' % self.name)
603603
self.on_destroy()

0 commit comments

Comments
 (0)