Added autosuggestion color variable fish_color_autosuggestion

Fixed that nasty bug where fish would apply a color to both the foreground and background (yuck)
This commit is contained in:
ridiculousfish
2012-02-06 20:14:19 -08:00
parent e5b34d5cd5
commit 382ffe9b6a
8 changed files with 59 additions and 39 deletions

View File

@@ -529,8 +529,9 @@ static void s_set_color( screen_t *s, buffer_t *b, int c )
output_set_writer( &s_writeb );
s_writeb_buffer = b;
set_color( highlight_get_color( c & 0xffff ),
highlight_get_color( (c>>16)&0xffff ) );
unsigned int uc = (unsigned int)c;
set_color( highlight_get_color( uc & 0xffff, false ),
highlight_get_color( (uc>>16)&0xffff, true ) );
output_set_writer( writer_old );