Skip to content

Commit ca4cc01

Browse files
committed
patch 8.1.0193: terminal debugger buttons don't always work
Problem: Terminal debugger buttons don't always work. (Dominique Pelle) Solution: Set 'cpo' to its default value.
1 parent 0270f38 commit ca4cc01

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ else
5656
finish
5757
endif
5858

59+
let s:keepcpo = &cpo
60+
set cpo&vim
61+
5962
" The command that starts debugging, e.g. ":Termdebug vim".
6063
" To end type "quit" in the gdb window.
6164
command -nargs=* -complete=file -bang Termdebug call s:StartDebug(<bang>0, <f-args>)
@@ -943,3 +946,6 @@ func s:BufUnloaded()
943946
endif
944947
endfor
945948
endfunc
949+
950+
let &cpo = s:keepcpo
951+
unlet s:keepcpo

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+
193,
792794
/**/
793795
192,
794796
/**/

0 commit comments

Comments
 (0)