changeset 14360:e91659ae6614 v8.1.0195

patch 8.1.0195: terminal debugger commands don't always work commit https://github.com/vim/vim/commit/963c1ad5d072346d9e95d4c3be066b5e03c601d3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 19 02:55:01 2018 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Thu, 19 Jul 2018 03:00:04 +0200
parents 128e4fef2186
children 0ea260db0c6e
files runtime/pack/dist/opt/termdebug/plugin/termdebug.vim src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -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 = []
--- a/src/version.c
+++ b/src/version.c
@@ -790,6 +790,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    195,
+/**/
     194,
 /**/
     193,