Fix regression: Don't render winbar if the window isn't valid

This commit is contained in:
Ben Jackson 2020-07-21 19:23:38 +01:00
commit ca4ab52f8d
2 changed files with 4 additions and 2 deletions

View file

@ -186,6 +186,9 @@ class OutputView( object ):
self._RenderWinBar( category )
def _RenderWinBar( self, category ):
if not self._window.valid:
return
tab_buffer = self._buffers[ category ]
try:

View file

@ -195,9 +195,8 @@ def RestoreCurrentWindow():
try:
yield
finally:
if old_tabpage.valid:
if old_tabpage.valid and old_window.valid:
vim.current.tabpage = old_tabpage
if old_window.valid:
vim.current.window = old_window