mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(prompt): lnum update via nvim_buf_set_lines if buf != curbuf #34833
Fixes the case from https://github.com/neovim/neovim/issues/34561#issuecomment-3031536581
This commit is contained in:
committed by
GitHub
parent
d88bebfbc7
commit
bf9d3e4bf8
@ -1232,7 +1232,7 @@ void mark_adjust_buf(buf_T *buf, linenr_T line1, linenr_T line2, linenr_T amount
|
|||||||
}
|
}
|
||||||
|
|
||||||
// on prompt buffer adjust the last prompt start location mark
|
// on prompt buffer adjust the last prompt start location mark
|
||||||
if (bt_prompt(curbuf)) {
|
if (bt_prompt(buf)) {
|
||||||
ONE_ADJUST_NODEL(&(buf->b_prompt_start.mark.lnum));
|
ONE_ADJUST_NODEL(&(buf->b_prompt_start.mark.lnum));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user