diff options
| author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2025-07-08 02:42:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 17:42:45 -0700 |
| commit | bf9d3e4bf8d3905abfc5007210fb426951d404a1 (patch) | |
| tree | 34cf826e8630ce61c268d2382185c4f082c5d578 /src/nvim | |
| parent | d88bebfbc7a69c0ce0734937affeadb4956cda34 (diff) | |
| download | rneovim-bf9d3e4bf8d3905abfc5007210fb426951d404a1.tar.gz rneovim-bf9d3e4bf8d3905abfc5007210fb426951d404a1.tar.bz2 rneovim-bf9d3e4bf8d3905abfc5007210fb426951d404a1.zip | |
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
Diffstat (limited to 'src/nvim')
| -rw-r--r-- | src/nvim/mark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c index d2719220f5..71fc119343 100644 --- a/src/nvim/mark.c +++ b/src/nvim/mark.c @@ -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 - if (bt_prompt(curbuf)) { + if (bt_prompt(buf)) { ONE_ADJUST_NODEL(&(buf->b_prompt_start.mark.lnum)); } |