diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-11-18 21:49:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-11-18 21:49:57 +0000 |
commit | d13166e788fcaef59ec65c20b46ca4be16625669 (patch) | |
tree | 4e1b18aac62e1650eaf92cfab756031cd50f4b10 /runtime/pack/dist/opt/termdebug | |
parent | 236dffab43f919bdbc565e6edc38eb27e7a5b657 (diff) |
Update runtime files
Diffstat (limited to 'runtime/pack/dist/opt/termdebug')
-rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 9b012c798b..9fd4bcb3f5 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -2,7 +2,7 @@ " " Author: Bram Moolenaar " Copyright: Vim license applies, see ":help license" -" Last Change: 2022 Jun 24 +" Last Change: 2022 Nov 10 " " WORK IN PROGRESS - The basics works stable, more to come " Note: In general you need at least GDB 7.12 because this provides the @@ -891,7 +891,14 @@ func s:InstallCommands() endif if has('menu') && &mouse != '' - call s:InstallWinbar() + " install the window toolbar by default, can be disabled in the config + let winbar = 1 + if exists('g:termdebug_config') + let winbar = get(g:termdebug_config, 'winbar', 1) + endif + if winbar + call s:InstallWinbar() + endif let popup = 1 if exists('g:termdebug_config') |