Re: Bug in popup maxwidth?

Salman Halim <[email protected]> Wed, 29 Jul 2026 10:57:55 -0400
Newsgroups gmane.editors.vim
Message-ID <CANuxnEcp8C29PXosyADcVKCJ506Hmt8Jui2xOd4R1DBTMGwucQ@mail.gmail.com>
--000000000000dbd3010657c12ed2
Content-Type: text/plain; charset="UTF-8"

On Wed, 29 Jul 2026, 09:33 h_east, <[email protected]> wrote:

> Hi,
>
> "maxwidth" still limits the width, what changed is how the width is
> computed.  Since patch 9.2.0419 it is the longest line in the whole
> buffer, not the longest displayed line, so that the width does not change
> while you scroll the popup with the mouse wheel.  The completion menu
> works the same way.
>
> So a buffer with one long line now sits at "maxwidth" all the time.  The
> documentation still described the old rule, which is being corrected:
> https://github.com/vim/vim/pull/20870
>
> If that is too wide, lower "maxwidth".
>
> --
> Best regards,
> Hirohito Higashi (h_east)
> github.com/sponsors/h-east <https://t.co/5nc0IkIaZ1>
>

I get all that. The problem is that popup_getoptions says that maxwidth and
minwidth are both 50 and popup_getpos says core_width is 93 and width is
99. I can confirm that the popup on-screen is, indeed, very wide.

Padding (from the options) is [1, 2, 1, 2], in case you want that, also.

Salman

>
>

-- 
-- 
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/CANuxnEcp8C29PXosyADcVKCJ506Hmt8Jui2xOd4R1DBTMGwucQ%40mail.gmail.com.

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

<div dir=3D"auto"><div dir=3D"auto"><br></div><div class=3D"gmail_quote gma=
il_quote_container" dir=3D"auto"><div dir=3D"ltr" class=3D"gmail_attr">On W=
ed, 29 Jul 2026, 09:33 h_east, &lt;<a href=3D"mailto:[email protected]">=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
><div>Hi,</div><div><br></div><div>&quot;maxwidth&quot; still limits the wi=
dth, what changed is how the width is<br>computed.=C2=A0 Since patch 9.2.04=
19 it is the longest line in the whole<br>buffer, not the longest displayed=
 line, so that the width does not change<br>while you scroll the popup with=
 the mouse wheel.=C2=A0 The completion menu<br>works the same way.<br><br>S=
o a buffer with one long line now sits at &quot;maxwidth&quot; all the time=
.=C2=A0 The<br>documentation still described the old rule, which is being c=
orrected:<br><a href=3D"https://github.com/vim/vim/pull/20870" target=3D"_b=
lank" rel=3D"noreferrer">https://github.com/vim/vim/pull/20870</a><br><br>I=
f that is too wide, lower &quot;maxwidth&quot;.<br><br></div><div>--</div><=
div>Best regards,</div><div>Hirohito Higashi (h_east)</div><div>
<a dir=3D"ltr" href=3D"https://t.co/5nc0IkIaZ1" rel=3D"noopener noreferrer =
nofollow noreferrer" role=3D"link" style=3D"color:rgb(0,186,124)" target=3D=
"_blank">github.com/sponsors/h-east</a></div></blockquote></div><div class=
=3D"gmail_quote gmail_quote_container" dir=3D"auto"><blockquote class=3D"gm=
ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex"><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr"><=
/div></div></blockquote></div><div class=3D"gmail_quote gmail_quote_contain=
er" dir=3D"auto"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"gmail_quote">=
<div dir=3D"auto" class=3D"gmail_attr"></div></div></blockquote></div><div =
dir=3D"auto"><br></div><div dir=3D"auto">I get all that. The problem is tha=
t popup_getoptions says that maxwidth and minwidth are both 50 and popup_ge=
tpos says core_width is 93 and width is 99. I can confirm that the popup on=
-screen is, indeed, very wide.=C2=A0</div><div dir=3D"auto"><br></div><div =
dir=3D"auto">Padding (from the options) is [1, 2, 1, 2], in case you want t=
hat, also.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">Salman=
=C2=A0</div><div class=3D"gmail_quote gmail_quote_container" dir=3D"auto"><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex"><div class=3D"gmail_quote"><div dir=3D"auto" =
class=3D"gmail_attr"><br></div></div>
</blockquote></div></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/CANuxnEcp8C29PXosyADcVKCJ506Hmt8Jui2xOd4R1DBTMGwucQ%40mail.gmail.co=
m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid=
/vim_use/CANuxnEcp8C29PXosyADcVKCJ506Hmt8Jui2xOd4R1DBTMGwucQ%40mail.gmail.c=
om</a>.<br />

--000000000000dbd3010657c12ed2--