Skip to content

Commit

Permalink
Merge pull request #483 from vim-vdebug/451-error-closing-breakpoint-…
Browse files Browse the repository at this point in the history
…window

451 error closing breakpoint window
  • Loading branch information
BlackIkeEagle authored Sep 9, 2020
2 parents 2aa277c + 9096fc1 commit 88e0826
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python3/vdebug/ui/vimui.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def __init__(self):
'DebuggerStatus': 'vertical leftabove new'
},
'window_size': {
'DebuggerWatch': { 'height' : 15 },
'DebuggerStatus': { 'height' : 1 }
'DebuggerWatch': {'height': 15},
'DebuggerStatus': {'height': 1}
},
'window_arrangement': [
'DebuggerWatch',
Expand Down Expand Up @@ -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)

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

0 comments on commit 88e0826

Please sign in to comment.