"search hit BOTTOM, continuing at TOP" message is never given

13 views
Skip to first unread message

Tony Mechelynck

unread,
May 2, 2020, 4:38:43 AM5/2/20
to vim_dev
I just noticed that neither the "search hit BOTTOM, continuing at TOP"
message, nor the converse when searching backwards, are ever given
anymore; and yet I have 'shortmess' set to filnxtToO i.e. without the
s flag which is supposed to suppress that message. Is this intended?

I also helpgrepped that message, found it mentioned at multiple
places, with no appearance of its having been retired. Can I please
have it back (and how), or is it gone for good?

Best regards,
Tony.

Christian Brabandt

unread,
May 2, 2020, 4:45:09 AM5/2/20
to vim...@googlegroups.com
I think you need the S flag in shortmess

> Am 02.05.2020 um 10:38 schrieb Tony Mechelynck <antoine.m...@gmail.com>:
>
> I just noticed that neither the "search hit BOTTOM, continuing at TOP"
> --
> --
> You received this message from the "vim_dev" 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_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAJkCKXv5mk7nAzjeOa9XeTH-RznPMC3tzztnboNtqZtU171k%2BQ%40mail.gmail.com.

Tony Mechelynck

unread,
May 2, 2020, 5:02:10 AM5/2/20
to vim_dev
On Sat, May 2, 2020 at 10:45 AM Christian Brabandt <c...@256bit.org> wrote:
>
> I think you need the S flag in shortmess

Well, if I add it, the message reappears; and yet, that "big S" flag
is supposed to suppress the [1/5] count when searching, so how can I
keep that message and _also_ have the BOTTOM/TOP message? Has there
been a mixup in the help, and should these two flags switch places, or
is it subtler than that?

Best regards,
Tony.

Gary Johnson

unread,
May 2, 2020, 12:05:27 PM5/2/20
to vim_dev
On 2020-05-02, Tony Mechelynck wrote:
> On Sat, May 2, 2020 at 10:45 AM Christian Brabandt wrote:
> >
> > I think you need the S flag in shortmess
>
> Well, if I add it, the message reappears; and yet, that "big S" flag
> is supposed to suppress the [1/5] count when searching, so how can I
> keep that message and _also_ have the BOTTOM/TOP message? Has there
> been a mixup in the help, and should these two flags switch places, or
> is it subtler than that?

With the current code, you cannot have both the search stats ([1/5]
count) and the BOTTOM/TOP message enabled at the same time.

I looked into fixing that, but the main problem was that the text in
the command line is in a global buffer that has one highlight
setting. The entire line can have normal highlighting or it can
have the WarningMsg highlighting of the BOTTOM/TOP message but it
can't have separating highlighting for the message and the count.

That could be changed, but I'd being coming up with an ad hoc
solution that might not be in keeping with the rest of Vim, so
I decided to leave it be.

Regards,
Gary

Tony Mechelynck

unread,
May 2, 2020, 1:38:45 PM5/2/20
to vim_dev
On Sat, May 2, 2020 at 6:05 PM Gary Johnson <gary...@spocom.com> wrote:
>
> With the current code, you cannot have both the search stats ([1/5]
> count) and the BOTTOM/TOP message enabled at the same time.
>
> I looked into fixing that, but the main problem was that the text in
> the command line is in a global buffer that has one highlight
> setting. The entire line can have normal highlighting or it can
> have the WarningMsg highlighting of the BOTTOM/TOP message but it
> can't have separating highlighting for the message and the count.
>
> That could be changed, but I'd being coming up with an ad hoc
> solution that might not be in keeping with the rest of Vim, so
> I decided to leave it be.
>
> Regards,
> Gary

Ah, that's it. Well, so be it then.

Best regards,
Tony.
Reply all
Reply to author
Forward
0 new messages