forked from aniani/vim
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:
@@ -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')
|
||||||
@@ -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 = []
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user