diff runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @ 14356:9339e4dbf6bf v8.1.0193

patch 8.1.0193: terminal debugger buttons don't always work commit https://github.com/vim/vim/commit/ca4cc018addbeb3ac5d0e05f18847015f91ff814 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 17 05:55:12 2018 +0200 patch 8.1.0193: terminal debugger buttons don't always work Problem: Terminal debugger buttons don't always work. (Dominique Pelle) Solution: Set 'cpo' to its default value.
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Jul 2018 06:00:06 +0200
parents 5b5364d0729d
children e91659ae6614
line wrap: on
line diff
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -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