Re: matchbufline and ignorecase/smartcase

Yegappan Lakshmanan <[email protected]>
Newsgroups gmane.editors.vim
Message-ID <CAAW7x7mRsZ+MsFyhYxfRe6O1SGsrFfBgR84F9Xc=+psKLV8FsA@mail.gmail.com>
Hi,

On Mon, Feb 19, 2024 at 12:11 PM Salman Halim <[email protected]> wrote:
>
> Hello,
>
> I'm using 64-bit GVim 9.1 patches 1-95 on Windows 10.
>
> Is it possible to have matchbufline() observe 'ignorecase' and 'smartcase'? Currently, if I have 'ignorecase' and 'smartcase' set, it behaves as if only 'ignorecase' were on and gives me results that regular search, for example, don't:
>

The matchbufline() function currently only supports the 'ignorecase'
option setting and
ignores the 'smartcase' setting.

Regards,
Yegappan

>
> Search for 'Unknown' where the file contains:
>
> unknown
> Unknown
> UNKNOWN
>
> Searching via n/N only finds the middle one (smartcase forces case matching) while matchbufline() matches all three.
>
> I COULD, of course, stick a \c or \C in front of my pattern based on whether the pattern contains an upper-case character, but I'd rather find out whether there is a plan to make matchbufline() observer smartcase before I put in the workaround.
>
> Thank you,
>
> --
>
> 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 on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7mRsZ%2BMsFyhYxfRe6O1SGsrFfBgR84F9Xc%3D%2BpsKLV8FsA%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.