summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-17 05:55:12 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-17 05:55:12 +0200
commitca4cc018addbeb3ac5d0e05f18847015f91ff814 (patch)
tree3d283a127c0a947f4a8eb6c784b4e8f3a8d15bb3 /runtime
parent0270f38e1ae484c31a80c813a08691c47a207f1a (diff)
downloadvim-git-ca4cc018addbeb3ac5d0e05f18847015f91ff814.tar.gz
patch 8.1.0193: terminal debugger buttons don't always workv8.1.0193
Problem: Terminal debugger buttons don't always work. (Dominique Pelle) Solution: Set 'cpo' to its default value.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index 1bea8f554..4ccbc4cb6 100644
--- 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