diff options
author | BlackEagle <ike.devolder@gmail.com> | 2017-03-23 17:21:22 +0100 |
---|---|---|
committer | BlackEagle <ike.devolder@gmail.com> | 2017-03-23 17:21:22 +0100 |
commit | 604aaaba784de5ca386f38bc6f229722799004b6 (patch) | |
tree | f2f0a1e76433fbeff22ed8d625631b32d8821b1e /plugin | |
parent | 04fadad652f333ebce95623030a3844db0297d6b (diff) | |
download | vdebug-604aaaba784de5ca386f38bc6f229722799004b6.zip |
make sure vdebug buffers are removed on close
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/python/vdebug/ui/vimui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/python/vdebug/ui/vimui.py b/plugin/python/vdebug/ui/vimui.py index 0bac4f9..338ccf7 100644 --- a/plugin/python/vdebug/ui/vimui.py +++ b/plugin/python/vdebug/ui/vimui.py @@ -506,12 +506,13 @@ class Window(vdebug.ui.interface.Window): def destroy(self, wipeout = True): """ destroy window """ - if not self.is_open: + if self._buffer == 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() def clean(self): """ clean all data in buffer """ |