Color the ellipsis used by line wrapping as comments. Thanks to Philip Ganchev for the suggestion.

darcs-hash:20061005194026-ac50b-2708cfe79f28dbae9febc3fc5fcddb48c1fc8822.gz
This commit is contained in:
axel 2006-10-06 05:40:26 +10:00
parent 8ace1739f5
commit 9611a3b205

View file

@ -392,7 +392,7 @@ static void s_desired_append_char( screen_t *s,
if( s->desired_cursor[0] + cw + ew > screen_width )
{
al_set_long( &current->text, s->desired_cursor[0], ellipsis_char );
al_set_long( &current->color, s->desired_cursor[0], 0 );
al_set_long( &current->color, s->desired_cursor[0], HIGHLIGHT_COMMENT );
current = s_create_line();
al_push( &s->desired, current );
@ -402,7 +402,7 @@ static void s_desired_append_char( screen_t *s,
{
s_desired_append_char( s, L' ', 0, prompt_width );
}
s_desired_append_char( s, ellipsis_char, 0, prompt_width );
s_desired_append_char( s, ellipsis_char, HIGHLIGHT_COMMENT, prompt_width );
}
al_set_long( &current->text, s->desired_cursor[0], b );