[vim/vim] fix: don't shift popupwin left when 'wrap' is on and maxwidth is set (PR #19809)

0 views
Skip to first unread message

h_east

unread,
Mar 24, 2026, 10:07:24 AM (2 days ago) Mar 24
to vim/vim, Subscribed

When a non-fixed popup with wrap=1 and an explicit maxwidth was placed near the right edge of the screen, the shift-left logic increased maxwidth beyond the user-specified value, preventing text from wrapping.

Now the shift amount is capped so that maxwidth does not exceed w_maxwidth when wrapping is enabled, letting text wrap as expected.

fixes #19767


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19809

Commit Summary

  • 37a2698 fix: don't shift popupwin left when 'wrap' is on and maxwidth is set

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19809@github.com>

h_east

unread,
Mar 24, 2026, 10:07:48 AM (2 days ago) Mar 24
to vim/vim, Subscribed
h-east left a comment (vim/vim#19809)

@Aster89 Will this PR resolve the issue you are reporting?

@bstaletic I don't think this pull request has changed the behavior of your patch(13c1153). Is there a problem?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19809/c4118594289@github.com>

Enrico Maria De Angelis

unread,
Mar 24, 2026, 11:15:38 AM (2 days ago) Mar 24
to vim/vim, Subscribed
Aster89 left a comment (vim/vim#19809)

@Aster89 Will this PR resolve the issue you are reporting?

Yes, @h-east, it will. I've double checked.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19809/c4119093769@github.com>

Christian Brabandt

unread,
Mar 25, 2026, 4:22:19 PM (14 hours ago) Mar 25
to vim/vim, Subscribed

Closed #19809 via c0f0a34.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19809/issue_event/23906438404@github.com>

Reply all
Reply to author
Forward
0 new messages