Is matchadd() supposed to respect 'ignorecase'? The documentation does
not explicitly say, but it uses a {pattern} like search() and
searchpos(), both of which *do* respect 'ignorecase' and 'smartcase'.
To test:
$ vim -u NONE -N
[enter some text like "abc ABC"]
[run the following ex commands]
highlight SneakPluginTarget guifg=white guibg=magenta ctermfg=white
ctermbg=magenta
set ignorecase
call matchadd('SneakPluginTarget', 'a', 2)
---
Only the lowercase "a" is highlighted, even though 'ignorecase' is set.
see also: https://github.com/justinmk/vim-sneak/issues/16
Thanks for your help!
Justin M. Keyes
--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
Sunday, November 3, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment