mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-04-02 09:57:55 +08:00
Always check strings sent to tparm
darcs-hash:20060731004804-ac50b-ddede984cbc114b5e79745aef768f85a587d3dc6.gz
This commit is contained in:
parent
f439c4a484
commit
f05e1f6e48
11
output.c
11
output.c
@ -279,8 +279,12 @@ void set_color( int c, int c2 )
|
||||
writembs( exit_attribute_mode );
|
||||
if( ( last_color != FISH_COLOR_NORMAL ) && fg )
|
||||
{
|
||||
writembs( tparm( fg, last_color ) );
|
||||
if( fg )
|
||||
{
|
||||
writembs( tparm( fg, last_color ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
was_bold=0;
|
||||
was_underline=0;
|
||||
@ -303,7 +307,10 @@ void set_color( int c, int c2 )
|
||||
{
|
||||
if( is_bold && !was_bold )
|
||||
{
|
||||
writembs( tparm( enter_bold_mode ) );
|
||||
if( enter_bold_mode )
|
||||
{
|
||||
writembs( tparm( enter_bold_mode ) );
|
||||
}
|
||||
}
|
||||
was_bold = is_bold;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user