comparison runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @ 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 3b26420fc639
children f690da1b3c04
comparison
equal deleted inserted replaced
12772:4fe368f098c1 12773:d9067dad4ac6
78 return 78 return
79 endif 79 endif
80 let commpty = job_info(term_getjob(s:commbuf))['tty_out'] 80 let commpty = job_info(term_getjob(s:commbuf))['tty_out']
81 81
82 " Open a terminal window to run the debugger. 82 " 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]
84 echomsg 'executing "' . join(cmd) . '"' 85 echomsg 'executing "' . join(cmd) . '"'
85 let gdbbuf = term_start(cmd, { 86 let gdbbuf = term_start(cmd, {
86 \ 'exit_cb': function('s:EndDebug'), 87 \ 'exit_cb': function('s:EndDebug'),
87 \ 'term_finish': 'close', 88 \ 'term_finish': 'close',
88 \ }) 89 \ })