Skip to content

Commit 963c1ad

Browse files
committed
patch 8.1.0195: terminal debugger commands don't always work
Problem: Terminal debugger commands don't always work. (Dominique Pelle) Solution: Set 'cpo' to its default value when defining commands. (Christian Brabandt)
1 parent 4149980 commit 963c1ad

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,9 @@ endfunc
566566

567567
" Install commands in the current window to control the debugger.
568568
func s:InstallCommands()
569+
let save_cpo = &cpo
570+
set cpo&vim
571+
569572
command Break call s:SetBreakpoint()
570573
command Clear call s:ClearBreakpoint()
571574
command Step call s:SendCommand('-exec-step')
@@ -603,6 +606,8 @@ func s:InstallCommands()
603606
an 1.230 PopUp.Evaluate :Evaluate<CR>
604607
endif
605608
endif
609+
610+
let &cpo = save_cpo
606611
endfunc
607612

608613
let s:winbar_winids = []

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
195,
792794
/**/
793795
194,
794796
/**/

0 commit comments

Comments
 (0)