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)
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index 4ccbc4c..63a3b1d 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -566,6 +566,9 @@
" Install commands in the current window to control the debugger.
func s:InstallCommands()
+ let save_cpo = &cpo
+ set cpo&vim
+
command Break call s:SetBreakpoint()
command Clear call s:ClearBreakpoint()
command Step call s:SendCommand('-exec-step')
@@ -603,6 +606,8 @@
an 1.230 PopUp.Evaluate :Evaluate<CR>
endif
endif
+
+ let &cpo = save_cpo
endfunc
let s:winbar_winids = []
diff --git a/src/version.c b/src/version.c
index f6542b6..997f4a0 100644
--- a/src/version.c
+++ b/src/version.c
@@ -790,6 +790,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 195,
+/**/
194,
/**/
193,