Skip to content

Commit

Permalink
patch 8.1.0195: terminal debugger commands don't always work
Browse files Browse the repository at this point in the history
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 963c1ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
Expand Up @@ -566,6 +566,9 @@ endfunc


" Install commands in the current window to control the debugger. " Install commands in the current window to control the debugger.
func s:InstallCommands() func s:InstallCommands()
let save_cpo = &cpo
set cpo&vim

command Break call s:SetBreakpoint() command Break call s:SetBreakpoint()
command Clear call s:ClearBreakpoint() command Clear call s:ClearBreakpoint()
command Step call s:SendCommand('-exec-step') command Step call s:SendCommand('-exec-step')
Expand Down Expand Up @@ -603,6 +606,8 @@ func s:InstallCommands()
an 1.230 PopUp.Evaluate :Evaluate<CR> an 1.230 PopUp.Evaluate :Evaluate<CR>
endif endif
endif endif

let &cpo = save_cpo
endfunc endfunc


let s:winbar_winids = [] let s:winbar_winids = []
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -789,6 +789,8 @@ static char *(features[]) =


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

0 comments on commit 963c1ad

Please sign in to comment.