File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments