]> granicus.if.org Git - vim/commitdiff
patch 8.1.0193: terminal debugger buttons don't always work v8.1.0193
authorBram Moolenaar <Bram@vim.org>
Tue, 17 Jul 2018 03:55:12 +0000 (05:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 17 Jul 2018 03:55:12 +0000 (05:55 +0200)
Problem:    Terminal debugger buttons don't always work. (Dominique Pelle)
Solution:   Set 'cpo' to its default value.

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

index 1bea8f5542d84923ee5736ee89c7c91f4cde4672..4ccbc4cb668d4b0b04290fa6f5d0c5b3919b2f1d 100644 (file)
@@ -56,6 +56,9 @@ else
   finish
 endif
 
+let s:keepcpo = &cpo
+set cpo&vim
+
 " The command that starts debugging, e.g. ":Termdebug vim".
 " To end type "quit" in the gdb window.
 command -nargs=* -complete=file -bang Termdebug call s:StartDebug(<bang>0, <f-args>)
@@ -943,3 +946,6 @@ func s:BufUnloaded()
     endif
   endfor
 endfunc
+
+let &cpo = s:keepcpo
+unlet s:keepcpo
index cb2744d6d08ad6cb5863008456857c6a3ac9ffbe..3c9676e517b5c86d87a28f8fa7824a51f5d63344 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    193,
 /**/
     192,
 /**/