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)
This commit is contained in:
Bram Moolenaar
2018-07-19 02:55:01 +02:00
parent 414998023f
commit 963c1ad5d0
2 changed files with 7 additions and 0 deletions

View File

@ -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 = []