Fixed middle part background when no left side is present

This commit is contained in:
Emmanuel BENOîT 2020-10-19 21:44:48 +02:00
parent 6cd023a0fe
commit 59903d01aa

5
spp.pl
View file

@ -350,7 +350,10 @@ sub gen_top_line
if ( defined $midGen ) { if ( defined $midGen ) {
@middle = ( gen_prompt_section( $midGen ) ); @middle = ( gen_prompt_section( $midGen ) );
if ( @middle ) { if ( @middle ) {
@lm = gen_transition( $THEME{middle_prefix} , $mc , $mc ); @lm = (
gen_transition( $THEME{middle_prefix} , $mc , $mc ) ,
{ bg => $THEME{bg_middle} } ,
);
@mr = gen_transition( $THEME{middle_suffix} , $mc , $mc ); @mr = gen_transition( $THEME{middle_suffix} , $mc , $mc );
foreach my $entry ( @middle ) { foreach my $entry ( @middle ) {
delete $entry->{bg}; delete $entry->{bg};