Give search highligting precedence over other highligting types

darcs-hash:20061022094018-ac50b-0f688dc7e756f428c05e6977db6dc9cf9f642475.gz
This commit is contained in:
axel 2006-10-22 19:40:18 +10:00
parent b83a7cb659
commit 5a7a8003a0

View file

@ -1822,7 +1822,8 @@ void reader_set_test_function( int (*f)( wchar_t * ) )
/**
Call specified external highlighting function and then do search
highlighting. Lastly, clear the background color under the cursor
to avoid confusion.
to avoid repaint issues on terminals where e.g. syntax highligthing
maykes characters under the sursor unreadable.
\param match_highlight_pos the position to use for bracket matching. This need not be the same as the surrent cursor position
\param error if non-null, any possible errors in the buffer are further descibed by the strings inserted into the specified arraylist
@ -1843,13 +1844,7 @@ static void reader_super_highlight_me_plenty( int match_highlight_pos, array_lis
for( i=0; i<count; i++ )
{
/*
Do not overwrite previous highlighting color
*/
if( data->color[start+i]>>8 == 0 )
{
data->color[start+i] |= HIGHLIGHT_SEARCH_MATCH<<16;
}
data->color[start+i] |= HIGHLIGHT_SEARCH_MATCH<<16;
}
}
}