Bug#572994: [patch] Highlight match when using :s_c
James Vega
jamessan at debian.org
Mon Mar 22 19:48:00 UTC 2010
Bram,
When 7.1a was released (revision 9abe06cc329f of the hg repo), the
default value of the IncSearch highlight group was guarded with "#ifdef
FEAT_SEARCH_EXTRA". This prevents the matched pattern from being
highlighted when a user uses the c flag for :substitute and Vim is built
with the small or tiny feature set.
Compare the following using Vim built with --with-features=normal and
--with-features=small.
$ src/vim -u NONE -N README.txt
:s/txt/XXX/c
The attached patch simply backs out the #ifdef change. This should be
acceptable since, as the comment above highlight_init_both's definition
says, the #ifdefs are just an optimization.
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at jamessan.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: confirm_highlight.diff
Type: application/octet-stream
Size: 598 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20100322/b339304f/attachment.obj>
More information about the pkg-vim-maintainers
mailing list