Patch 8.1.1082
Problem: "Conceal" match is mixed up with 'hlsearch' match.
Solution: Check that a match is found, not a 'hlsearch' item. (Andy
Massimino, closes #4073)
Files: src/screen.c
*** ../vim-8.1.1081/src/screen.c 2019-03-30 15:34:42.715472004 +0100
--- src/screen.c 2019-03-30 16:38:50.942088873 +0100
***************
*** 4133,4140 ****
shl->endcol = tmp_col;
shl->attr_cur = shl->attr;
#ifdef FEAT_CONCEAL
! if (cur != NULL && syn_name2id((char_u *)"Conceal")
! == cur->hlg_id)
{
has_match_conc =
v == (long)shl->startcol ? 2 : 1;
--- 4133,4144 ----
shl->endcol = tmp_col;
shl->attr_cur = shl->attr;
#ifdef FEAT_CONCEAL
! // Match with the "Conceal" group results in hiding
! // the match.
! if (cur != NULL
! && shl != &search_hl
! && syn_name2id((char_u *)"Conceal")
! == cur->hlg_id)
{
has_match_conc =
v == (long)shl->startcol ? 2 : 1;
***************
*** 5175,5182 ****
#ifdef FEAT_CONCEAL
if ( wp->w_p_cole > 0
&& (wp != curwin || lnum != wp->w_cursor.lnum ||
! conceal_cursor_line(wp)
)
! && ( (syntax_flags & HL_CONCEAL) != 0 || has_match_conc > 0)
&& !(lnum_in_visual_area
&& vim_strchr(wp->w_p_cocu, 'v') == NULL))
{
--- 5179,5186 ----
#ifdef FEAT_CONCEAL
if ( wp->w_p_cole > 0
&& (wp != curwin || lnum != wp->w_cursor.lnum ||
! conceal_cursor_line(wp))
! && ((syntax_flags & HL_CONCEAL) != 0 || has_match_conc > 0)
&& !(lnum_in_visual_area
&& vim_strchr(wp->w_p_cocu, 'v') == NULL))
{
*** ../vim-8.1.1081/src/version.c 2019-03-30 16:24:12.240380238 +0100
--- src/version.c 2019-03-30 16:37:02.526829666 +0100
***************
*** 777,778 ****
--- 777,780 ----
{ /* Add new patch number below this line */
+ /**/
+ 1082,
/**/
--
Two sheep in a meadow. One says "baaah". The other says "exactly!".
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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].
For more options, visit https://groups.google.com/d/optout.