mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(termdebug): prompt mode breaks with &splitbelow set
Unlike Vim, termopen() doesn't split, so you can't use the modifier like that. Remove the fragile :wincmd shenanigans.
This commit is contained in:
parent
af78060b18
commit
c413b42c45
@ -484,9 +484,8 @@ func s:StartDebug_prompt(dict)
|
|||||||
else
|
else
|
||||||
" Unix: Run the debugged program in a terminal window. Open it below the
|
" Unix: Run the debugged program in a terminal window. Open it below the
|
||||||
" gdb window.
|
" gdb window.
|
||||||
execute 'new'
|
belowright new
|
||||||
wincmd x | wincmd j
|
let s:pty_job_id = termopen('tail -f /dev/null;#gdb program')
|
||||||
belowright let s:pty_job_id = termopen('tail -f /dev/null;#gdb program')
|
|
||||||
if s:pty_job_id == 0
|
if s:pty_job_id == 0
|
||||||
call s:Echoerr('Invalid argument (or job table is full) while opening terminal window')
|
call s:Echoerr('Invalid argument (or job table is full) while opening terminal window')
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user