Permalink
Browse files

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)
  • Loading branch information...
brammool committed Jul 19, 2018
1 parent 4149980 commit 963c1ad5d072346d9e95d4c3be066b5e03c601d3
Showing with 7 additions and 0 deletions.
  1. +5 −0 runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
  2. +2 −0 src/version.c
@@ -566,6 +566,9 @@ endfunc

" 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 @@ func s:InstallCommands()
an 1.230 PopUp.Evaluate :Evaluate<CR>
endif
endif

let &cpo = save_cpo
endfunc

let s:winbar_winids = []
@@ -789,6 +789,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
195,
/**/
194,
/**/

0 comments on commit 963c1ad

Please sign in to comment.