]> granicus.if.org Git - vim/commitdiff
patch 8.1.0195: terminal debugger commands don't always work v8.1.0195
authorBram Moolenaar <Bram@vim.org>
Thu, 19 Jul 2018 00:55:01 +0000 (02:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 19 Jul 2018 00:55:01 +0000 (02:55 +0200)
Problem:    Terminal debugger commands don't always work. (Dominique Pelle)
Solution:   Set 'cpo' to its default value when defining commands. (Christian
            Brabandt)

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
src/version.c

index 4ccbc4cb668d4b0b04290fa6f5d0c5b3919b2f1d..63a3b1d83d0097332d1163ac01d4e72af19b832a 100644 (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 = []
index f6542b672a8029a8b6d2a21a28931ca95837dc43..997f4a034756ee12a9b9316ff7fad8753cdce386 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    195,
 /**/
     194,
 /**/