Permalink
Browse files

First attempt at removing empty buffers, as in #25

  • Loading branch information...
1 parent 4adddce commit 17ac54b6d5aa4ff937fb6c68de078f1c0df28eb7 @joonty committed Dec 4, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 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

0 comments on commit 17ac54b

Please sign in to comment.