Re: Bug in popup maxwidth?

Salman Halim <[email protected]> Thu, 30 Jul 2026 10:07:26 -0400
Newsgroups gmane.editors.vim
Message-ID <CANuxnEfUZCvruqajRiZWsnyUYYJKnCNFz=+bmkarXNQC9+6vZA@mail.gmail.com>
--0000000000003421a80657d49825
Content-Type: text/plain; charset="UTF-8"

Excellent! Thank you.

Sorry I missed your last message asking for a sample. Something came up
that took all my time.

Salman

I, too, shall something make and glory in the making.


On Thu, 30 Jul 2026, 10:05 h_east, <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/vim_use/fa0b32e3-2b25-49da-87a2-ac2a431a1dc7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
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/CANuxnEfUZCvruqajRiZWsnyUYYJKnCNFz%3D%2BbmkarXNQC9%2B6vZA%40mail.gmail.com.

--0000000000003421a80657d49825
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>Excellent! Thank you.=C2=A0</div><div dir=3D"auto"><=
br></div><div dir=3D"auto">Sorry I missed your last message asking for a sa=
mple. Something came up that took all my time.=C2=A0</div><div><br></div><d=
iv data-smartmail=3D"gmail_signature">Salman<br><br>I, too, shall something=
 make and glory in the making.<br><br></div></div><br><div class=3D"gmail_q=
uote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, 3=
0 Jul 2026, 10:05 h_east, &lt;<a href=3D"mailto:[email protected]">h.eas=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div=
>Hi,</div><div><br></div><div>Thanks, those numbers were enough to reproduc=
e it here.<br><br>It happens when &#39;wrap&#39; is off and the popup is so=
 close to the right<br>edge that the space left of it is smaller than &quot=
;maxwidth&quot;.=C2=A0 On a 120<br>column screen:<br><br>=C2=A0 =C2=A0 call=
 popup_create([repeat(&#39;x&#39;, 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, borde=
r: []})<br><br>The popup is shifted left to fit the text on the screen, and=
 that shift<br>raises the width limit itself.=C2=A0 Patch 9.2.0247 already =
guarded against<br>this, but only for &#39;wrap&#39; being on.<br><br>Fix: =
<a href=3D"https://github.com/vim/vim/pull/20883" target=3D"_blank" rel=3D"=
noreferrer">https://github.com/vim/vim/pull/20883</a><br><br></div><div>--<=
/div><div>Best 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" tar=
get=3D"_blank" rel=3D"noreferrer">http://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]" target=3D"_=
blank" rel=3D"noreferrer">[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&amp;utm_source=3Dfooter" target=3D"_blank" rel=3D"noreferrer">http=
s://groups.google.com/d/msgid/vim_use/fa0b32e3-2b25-49da-87a2-ac2a431a1dc7n=
%40googlegroups.com</a>.<br>
</blockquote></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/CANuxnEfUZCvruqajRiZWsnyUYYJKnCNFz%3D%2BbmkarXNQC9%2B6vZA%40mail.gm=
ail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d=
/msgid/vim_use/CANuxnEfUZCvruqajRiZWsnyUYYJKnCNFz%3D%2BbmkarXNQC9%2B6vZA%40=
mail.gmail.com</a>.<br />

--0000000000003421a80657d49825--