diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-26 21:33:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-26 21:33:31 +0200 |
commit | 68e6560b84f196c82e27a72669684d5506a3a837 (patch) | |
tree | a0652888fa60c92d0d6d8335880961437c76b9f3 /runtime/pack/dist/opt/termdebug | |
parent | 20c023aee0ceafac9431fb8ab8d169747b5140dd (diff) | |
download | vim-git-68e6560b84f196c82e27a72669684d5506a3a837.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/pack/dist/opt/termdebug')
-rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 846897004..8c4395c88 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -117,10 +117,14 @@ func s:StartDebug_internal(dict) let s:startsigncolumn = &signcolumn let s:save_columns = 0 + let s:allleft = 0 if exists('g:termdebug_wide') if &columns < g:termdebug_wide let s:save_columns = &columns let &columns = g:termdebug_wide + " If we make the Vim window wider, use the whole left halve for the debug + " windows. + let s:allleft = 1 endif let s:vertical = 1 else @@ -165,6 +169,10 @@ func s:StartDebug_term(dict) " Assuming the source code window will get a signcolumn, use two more " columns for that, thus one less for the terminal window. exe (&columns / 2 - 1) . "wincmd |" + if s:allleft + " use the whole left column + wincmd H + endif endif " Create a hidden terminal window to communicate with gdb |