Open lifepillar opened 6 months ago
If I scroll with mouse after step 4, window height increases.
That's right, scrolling down restores the correct height. But scrolling should not be necessary. If you repeat the steps above skipping step 2, at step 4 the height is restored at once, as expected. I would expect that any call to popup_settext()
adapts the popup height (within the minheight
/maxheight
limits) regardless of the cursor's position.
Steps to reproduce
vim --clean
1001
)::call popup_settext(1001, [])
. The popup becomes empty and with minimum height.:call popup_settext(1001, ['a', 'b', 'c'])
The height of the popup does not change at step 4.
Expected behaviour
I would expect the popup to resize at step 4 to fit the new content. That is what happens if scrolling (step 2) is skipped when performing the above.
Version of Vim
9.1.405
Environment
macOS 14.4.1 Apple Terminal xterm-256color ZSH 5.9
Logs and stack traces
No response