Put the watches between the vars and the scopes

This commit is contained in:
Ben Jackson 2018-06-03 00:36:46 +01:00
commit 040746409b

View file

@ -272,21 +272,22 @@ class DebugSession( object ):
self._connection, self._connection,
vim.current.buffer ) vim.current.buffer )
with utils.TemporaryVimOption( 'eadirection', 'ver' ): with utils.TemporaryVimOption( 'splitbelow', False ):
with utils.TemporaryVimOption( 'equalalways', 1 ): with utils.TemporaryVimOption( 'eadirection', 'ver' ):
# Variables with utils.TemporaryVimOption( 'equalalways', 1 ):
vim.command( 'spl' ) # Watches
vim.command( 'enew' ) vim.command( 'spl' )
vars_win = vim.current.window vim.command( 'enew' )
watch_win = vim.current.window
# Watches # Variables
vim.command( 'spl' ) vim.command( 'spl' )
vim.command( 'enew' ) vim.command( 'enew' )
watch_win = vim.current.window vars_win = vim.current.window
self._variablesView = variables.VariablesView( self._connection, self._variablesView = variables.VariablesView( self._connection,
vars_win, vars_win,
watch_win ) watch_win )
with utils.TemporaryVimOption( 'splitbelow', True ): with utils.TemporaryVimOption( 'splitbelow', True ):