mirror of
https://github.com/fish-shell/fish-shell
synced 2024-09-22 23:42:00 +00:00
Give search highligting precedence over other highligting types
darcs-hash:20061022094018-ac50b-0f688dc7e756f428c05e6977db6dc9cf9f642475.gz
This commit is contained in:
parent
b83a7cb659
commit
5a7a8003a0
1 changed files with 3 additions and 8 deletions
11
reader.c
11
reader.c
|
@ -1822,7 +1822,8 @@ void reader_set_test_function( int (*f)( wchar_t * ) )
|
||||||
/**
|
/**
|
||||||
Call specified external highlighting function and then do search
|
Call specified external highlighting function and then do search
|
||||||
highlighting. Lastly, clear the background color under the cursor
|
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 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
|
\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++ )
|
for( i=0; i<count; i++ )
|
||||||
{
|
{
|
||||||
/*
|
data->color[start+i] |= HIGHLIGHT_SEARCH_MATCH<<16;
|
||||||
Do not overwrite previous highlighting color
|
|
||||||
*/
|
|
||||||
if( data->color[start+i]>>8 == 0 )
|
|
||||||
{
|
|
||||||
data->color[start+i] |= HIGHLIGHT_SEARCH_MATCH<<16;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue