mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 21:02:11 +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.
|
||||
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
|
||||
if !empty(lines)
|
||||
set modified
|
||||
|
||||
Reference in New Issue
Block a user