From 040746409b31ac6fd2fdea56491d41879a36f0e4 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Sun, 3 Jun 2018 00:36:46 +0100 Subject: [PATCH] Put the watches between the vars and the scopes --- python3/vimspector/debug_session.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/python3/vimspector/debug_session.py b/python3/vimspector/debug_session.py index 2632948..6140c55 100644 --- a/python3/vimspector/debug_session.py +++ b/python3/vimspector/debug_session.py @@ -272,21 +272,22 @@ class DebugSession( object ): self._connection, vim.current.buffer ) - with utils.TemporaryVimOption( 'eadirection', 'ver' ): - with utils.TemporaryVimOption( 'equalalways', 1 ): - # Variables - vim.command( 'spl' ) - vim.command( 'enew' ) - vars_win = vim.current.window + with utils.TemporaryVimOption( 'splitbelow', False ): + with utils.TemporaryVimOption( 'eadirection', 'ver' ): + with utils.TemporaryVimOption( 'equalalways', 1 ): + # Watches + vim.command( 'spl' ) + vim.command( 'enew' ) + watch_win = vim.current.window - # Watches - vim.command( 'spl' ) - vim.command( 'enew' ) - watch_win = vim.current.window + # Variables + vim.command( 'spl' ) + vim.command( 'enew' ) + vars_win = vim.current.window - self._variablesView = variables.VariablesView( self._connection, - vars_win, - watch_win ) + self._variablesView = variables.VariablesView( self._connection, + vars_win, + watch_win ) with utils.TemporaryVimOption( 'splitbelow', True ):