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 <[email protected]>

Attachment: confirm_highlight.diff
Description: Binary data

Reply via email to