]> granicus.if.org Git - vim/commitdiff
patch 8.0.1264: terminal debugger gets stuck in small window v8.0.1264
authorBram Moolenaar <Bram@vim.org>
Sat, 4 Nov 2017 20:44:59 +0000 (21:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 4 Nov 2017 20:44:59 +0000 (21:44 +0100)
Problem:    Terminal debugger gets stuck in small window.
Solution:   Add "-quiet" to the gdb command. (Christian Brabandt, closes #2154)

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

index 229cc7a7aa1bfcb0b1d577db8577dd703c199616..a4dbf536ae0910407327973c688b8d088cc8579f 100644 (file)
@@ -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'),
index 2a2cefe3d1c802ebb94b41cded2a21261edbe241..e83549c98e213a68c9f48b59aa2ba32d852f5a58 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1264,
 /**/
     1263,
 /**/