Re: Bug in popup maxwidth?

h_east <[email protected]> Thu, 30 Jul 2026 07:05:53 -0700 (PDT)
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
------=_Part_322382_2117508660.1785420353756
Content-Type: multipart/alternative; 
	boundary="----=_Part_322383_1823337015.1785420353756"

------=_Part_322383_1823337015.1785420353756
Content-Type: text/plain; charset="UTF-8"

Hi,

Thanks, those numbers were enough to reproduce it here.

It happens when 'wrap' is off and the popup is so close to the right
edge that the space left of it is smaller than "maxwidth".  On a 120
column screen:

    call popup_create([repeat('x', 93)],
                \ #{line: 3, col: 80, maxwidth: 50, wrap: 0, border: []})

The popup is shifted left to fit the text on the screen, and that shift
raises the width limit itself.  Patch 9.2.0247 already guarded against
this, but only for 'wrap' being on.

Fix: https://github.com/vim/vim/pull/20883

--
Best regards,
Hirohito Higashi (h_east)

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/fa0b32e3-2b25-49da-87a2-ac2a431a1dc7n%40googlegroups.com.

------=_Part_322383_1823337015.1785420353756
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div>Hi,</div><div><br /></div><div>Thanks, those numbers were enough to re=
produce it here.<br /><br />It happens when 'wrap' is off and the popup is =
so close to the right<br />edge that the space left of it is smaller than "=
maxwidth". =C2=A0On a 120<br />column screen:<br /><br />=C2=A0 =C2=A0 call=
 popup_create([repeat('x', 93)],<br />=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 \ #{line: 3, col: 80, maxwidth: 50, wrap: 0, border: [=
]})<br /><br />The popup is shifted left to fit the text on the screen, and=
 that shift<br />raises the width limit itself. =C2=A0Patch 9.2.0247 alread=
y guarded against<br />this, but only for 'wrap' being on.<br /><br />Fix: =
https://github.com/vim/vim/pull/20883<br /><br /></div><div>--</div><div>Be=
st regards,</div><div>Hirohito Higashi (h_east)</div>

<p></p>

-- <br />
-- <br />
You received this message from the &quot;vim_use&quot; maillist.<br />
Do not top-post! Type your reply below the text you are replying to.<br />
For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt=
p://www.vim.org/maillist.php</a><br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;vim_use&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">vim_use+uns=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_use/fa0b32e3-2b25-49da-87a2-ac2a431a1dc7n%40googlegroups.com?utm_medium=
=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/vim_use/fa0=
b32e3-2b25-49da-87a2-ac2a431a1dc7n%40googlegroups.com</a>.<br />

------=_Part_322383_1823337015.1785420353756--

------=_Part_322382_2117508660.1785420353756--