Monday, February 19, 2024

matchbufline and ignorecase/smartcase

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:

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

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

--
--
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 vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEcZ0SWUpbQ5GxmLm%2B8EApabdG%3DHWbLE9Xt-xrOH8hTgEg%40mail.gmail.com.

No comments: