Fix regression: Don't render winbar if the window isn't valid
This commit is contained in:
parent
0140a607b1
commit
ca4ab52f8d
2 changed files with 4 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue