changeset 12773:d9067dad4ac6 v8.0.1264

patch 8.0.1264: terminal debugger gets stuck in small window commit https://github.com/vim/vim/commit/c3632516303842244442f354734e54a403ec4b50 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 4 21:44:59 2017 +0100 patch 8.0.1264: terminal debugger gets stuck in small window Problem: Terminal debugger gets stuck in small window. Solution: Add "-quiet" to the gdb command. (Christian Brabandt, closes https://github.com/vim/vim/issues/2154)
author Christian Brabandt <cb@256bit.org>
date Sat, 04 Nov 2017 22:00:04 +0100
parents 4fe368f098c1
children dc6864c4508b
files runtime/pack/dist/opt/termdebug/plugin/termdebug.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -80,7 +80,8 @@ func s:StartDebug(cmd)
   let commpty = job_info(term_getjob(s:commbuf))['tty_out']
 
   " Open a terminal window to run the debugger.
-  let cmd = [g:termdebugger, '-tty', pty, a:cmd]
+  " Add -quiet to avoid the intro message causing a hit-enter prompt.
+  let cmd = [g:termdebugger, '-quiet', '-tty', pty, a:cmd]
   echomsg 'executing "' . join(cmd) . '"'
   let gdbbuf = term_start(cmd, {
 	\ 'exit_cb': function('s:EndDebug'),
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1264,
+/**/
     1263,
 /**/
     1262,