Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

First attempt at removing empty buffers, as in #25

  • Loading branch information...
commit 17ac54b6d5aa4ff937fb6c68de078f1c0df28eb7 1 parent 4adddce
@joonty authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 plugin/python/vdebug/ui/vimui.py
View
5 plugin/python/vdebug/ui/vimui.py
@@ -21,7 +21,8 @@ def open(self):
self.is_open = True
vim.command('silent tabnew')
self.tabnr = vim.eval("tabpagenr()")
-
+ self.emptybuffer = vim.eval("bufwinnr(expand('%:p'))")
+
srcwin_name = self.__get_srcwin_name()
self.watchwin = WatchWindow(self,'vertical belowright new')
@@ -139,6 +140,8 @@ def close(self):
self.stackwin = None
self.statuswin = None
+ vim.command('bwipeout'+self.emptybuffer)
+
class SourceWindow(vdebug.ui.interface.Window):
file = None
Please sign in to comment.
Something went wrong with that request. Please try again.