diff options
| author | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2026-02-15 03:21:07 +0000 |
|---|---|---|
| committer | Sean Dewar <6256228+seandewar@users.noreply.github.com> | 2026-02-15 23:41:32 +0000 |
| commit | 7641177c5f981d90b3c080763a401496034f35c9 (patch) | |
| tree | 770b5b99a17ad7432492e106db4af420356d0d5c /test/functional/vimscript/executable_spec.lua | |
| parent | 7d8653575f2a1170f0c7651f271c45a15a185d5e (diff) | |
| download | rneovim-7641177c5f981d90b3c080763a401496034f35c9.tar.gz rneovim-7641177c5f981d90b3c080763a401496034f35c9.tar.bz2 rneovim-7641177c5f981d90b3c080763a401496034f35c9.zip | |
fix(prompt): wrong cursor col after prompt_setprompt, no on_lines
Problem: prompt_setprompt calls coladvance with a byte column, but it expects a
screen column. on_lines buffer-updates aren't fired when fixing the prompt line.
Solution: don't use coladvance. Call changed_lines, which also simplifies the
redraw logic. (and calls changed_cline_bef_curs if needed; added test checks
this)
Unlike https://github.com/neovim/neovim/pull/37743/changes#r2775398744, this
means &modified is set by prompt_setprompt if it fixes the prompt line.
Not setting &modified is inconsistent anyway -- even init_prompt sets it if it
fixes the prompt line.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions