From 229effac9f47bb6e000b90b76606f98eab5261be Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 12 Sep 2021 11:02:33 +0200 Subject: vim-patch:partial 6aa57295cfbe (#15633) * vim-patch:partial 6aa57295cfbe Update runtime files https://github.com/vim/vim/commit/6aa57295cfbe8f21c15f0671e45fd53cf990d404 omit doc/popup.txt omit plugin/manpager.vim partial skip runtime/doc/eval.txt (needs 8.2.{0258,0924,1544,2324,2468,2606}) skip ftplugin/julia.vim, indent/julia.vim, syntax/julia.vim (already ported in https://github.com/neovim/neovim/commit/65f32f0f195fbf7df2478f31cab345d00a6673a4) skip syntax/scala.vim (already ported in https://github.com/neovim/neovim/commit/a92e83ac14a0a674bc5b4b1d06d6b6c9d0d20a10) --- .../pack/dist/opt/termdebug/plugin/termdebug.vim | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'runtime/pack/dist/opt/termdebug/plugin/termdebug.vim') diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim index 2914e2bc4d..a80cb38b8d 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: 2021 May 18 +" Last Change: 2021 Aug 06 " " WORK IN PROGRESS - Only the basics work " Note: On MS-Windows you need a recent version of gdb. The one included with @@ -127,6 +127,10 @@ func s:StartDebug_internal(dict) let s:pid = 0 let s:asmwin = 0 + if exists('#User#TermdebugStartPre') + doauto User TermdebugStartPre + endif + " Uncomment this line to write logging in "debuglog". " call ch_logfile('debuglog', 'w') @@ -173,6 +177,10 @@ func s:StartDebug_internal(dict) call win_gotoid(curwinid) endif endif + + if exists('#User#TermdebugStartPost') + doauto User TermdebugStartPost + endif endfunc " Use when debugger didn't start or ended. @@ -623,6 +631,10 @@ func s:GetAsmAddr(msg) endfunc function s:EndTermDebug(job_id, exit_code, event) + if exists('#User#TermdebugStopPre') + doauto User TermdebugStopPre + endif + unlet s:gdbwin call s:EndDebugCommon() @@ -657,10 +669,18 @@ func s:EndDebugCommon() let &columns = s:save_columns endif + if exists('#User#TermdebugStopPost') + doauto User TermdebugStopPost + endif + au! TermDebug endfunc func s:EndPromptDebug(job_id, exit_code, event) + if exists('#User#TermdebugStopPre') + doauto User TermdebugStopPre + endif + let curwinid = win_getid(winnr()) call win_gotoid(s:gdbwin) close -- cgit