diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-04-23 15:22:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-23 15:22:55 +0200 |
| commit | e3f36377c156749bbdafc46d8a8cd017f378b4b5 (patch) | |
| tree | acaaab31bc9e0bdaddc5765aa0b7d1acd11fbecf /runtime/pack/dist/opt/termdebug/plugin | |
| parent | f17bb4f41102ecec7989bc4c14c626dc595e2f0b (diff) | |
| download | rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.gz rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.bz2 rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.zip | |
vim-patch:71badf9547e8 (#23285)
Update runtime files
https://github.com/vim/vim/commit/71badf9547e8f89571b9a095183671cbb333d528
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/pack/dist/opt/termdebug/plugin')
| -rw-r--r-- | runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index d653f71281..2c3f61c9d4 100644 --- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim +++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @@ -910,7 +910,7 @@ func s:InstallCommands() command Program call s:GotoProgram() command Source call s:GotoSourcewinOrCreateIt() command Asm call s:GotoAsmwinOrCreateIt() - command Winbar call s:InstallWinbar() + command Winbar call s:InstallWinbar(1) let map = 1 if exists('g:termdebug_config') @@ -931,14 +931,7 @@ func s:InstallCommands() endif if has('menu') && &mouse != '' - " 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 + call s:InstallWinbar(0) let popup = 1 if exists('g:termdebug_config') @@ -963,7 +956,7 @@ endfunc " let s:winbar_winids = [] " Install the window toolbar in the current window. -func s:InstallWinbar() +func s:InstallWinbar(force) " if has('menu') && &mouse != '' " nnoremenu WinBar.Step :Step<CR> " nnoremenu WinBar.Next :Over<CR> @@ -1370,7 +1363,7 @@ func s:GotoSourcewinOrCreateIt() if !win_gotoid(s:sourcewin) new let s:sourcewin = win_getid(winnr()) - call s:InstallWinbar() + call s:InstallWinbar(0) endif endfunc @@ -1493,7 +1486,7 @@ func s:HandleCursor(msg) " TODO: find existing window exe 'split ' . fnameescape(fname) let s:sourcewin = win_getid(winnr()) - call s:InstallWinbar() + call s:InstallWinbar(0) else exe 'edit ' . fnameescape(fname) endif |