Hi, On Thu, Feb 22, 2024 at 7:56 AM shane.qian <[email protected]> wrote: > > > The recently introduced matchbufline() and matchstrlist() functions > > use the 'ignorecase' option value. If this option is set, then these > > functions ignore the case when matching the strings. > > So the behavior of a plugin using these functions depends on a user > > configuration. > > To ignore this option setting, the plugins need to either clear this > > option or use the "\C" or "\c" atom > > when calling this function. > > > > Should we modify these functions to ignore the 'ignorecase' option > > value? The plugins can > > then choose to either ignore or not ignore the case explicitly and > > will be independent of a > > user configuration. > > please keep it, since it is same behavior like 'matchstr()' >
Yes. It makes sense to keep the behavior of these new functions consistent with the existing match*() functions. I missed the note about 'ignorecase', 'smartcase' and 'magic' in the help for match(). I will add a link to this note in the help text for the matchbufline() and matchstrlist() functions. Regards, Yegappan -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7nAgpL70QaotjtrYJVW%2Bph6asSOWKear0uFgwVunjv6%3Dw%40mail.gmail.com.
