Skip to content

Commit c363251

Browse files
committed
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 #2154)
1 parent 5a73e0c commit c363251

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

runtime/pack/dist/opt/termdebug/plugin/termdebug.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ func s:StartDebug(cmd)
8080
let commpty = job_info(term_getjob(s:commbuf))['tty_out']
8181

8282
" Open a terminal window to run the debugger.
83-
let cmd = [g:termdebugger, '-tty', pty, a:cmd]
83+
" Add -quiet to avoid the intro message causing a hit-enter prompt.
84+
let cmd = [g:termdebugger, '-quiet', '-tty', pty, a:cmd]
8485
echomsg 'executing "' . join(cmd) . '"'
8586
let gdbbuf = term_start(cmd, {
8687
\ 'exit_cb': function('s:EndDebug'),

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1264,
764766
/**/
765767
1263,
766768
/**/

0 commit comments

Comments
 (0)