mirror of
https://github.com/neovim/neovim.git
synced 2026-04-01 05:12:02 +00:00
fix(termdebug): use mark : to get prompt line in prompt buffer #37336
Problem:
- Nvim supports multi-line input in prompt buffer, so line(`$`) is not
always the prompt line.
Solution:
- Use `line("':")` to get the prompt line.
This commit is contained in:
@@ -692,7 +692,9 @@ func s:GdbOutCallback(job_id, msgs, event)
|
|||||||
|
|
||||||
" Add the output above the current prompt.
|
" Add the output above the current prompt.
|
||||||
for line in lines
|
for line in lines
|
||||||
call append(line('$') - 1, line)
|
" Nvim supports multi-line input in prompt-buffer, so the prompt line is
|
||||||
|
" not always the last line.
|
||||||
|
call append(line("':") - 1, line)
|
||||||
endfor
|
endfor
|
||||||
if !empty(lines)
|
if !empty(lines)
|
||||||
set modified
|
set modified
|
||||||
|
|||||||
Reference in New Issue
Block a user