Mercurial > vim
diff runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @ 31139:20cf2080f1ee
Update runtime files
Commit: https://github.com/vim/vim/commit/d13166e788fcaef59ec65c20b46ca4be16625669
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 18 21:49:57 2022 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 18 Nov 2022 23:00:05 +0100 |
parents | 729a7c00fabc |
children | b2e8663e6dcc |
line wrap: on
line diff
--- 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')