Bug#572994: [patch] Highlight match when using :s_c

Bram Moolenaar Bram at Moolenaar.net
Tue Mar 23 13:39:38 UTC 2010


James -

> 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.

Correct.  Thanks for the fix, I'll include it.

- Bram

-- 
   [Another hideous roar.]
BEDEVERE: That's it!
ARTHUR:   What?
BEDEVERE: It's The Legendary Black Beast of Aaaaarrrrrrggghhh!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///





More information about the pkg-vim-maintainers mailing list