mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 07:58:38 +08:00
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:
parent
8ace1739f5
commit
9611a3b205
4
screen.c
4
screen.c
@ -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( ¤t->text, s->desired_cursor[0], ellipsis_char );
|
||||
al_set_long( ¤t->color, s->desired_cursor[0], 0 );
|
||||
al_set_long( ¤t->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( ¤t->text, s->desired_cursor[0], b );
|
||||
|
Loading…
x
Reference in New Issue
Block a user