Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Set env outside loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mdom committed Jul 18, 2016
1 parent de7cb27 commit 67867b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/App/txtnix.pm
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,12 @@ sub display_tweets {
my $template = data_section( __PACKAGE__, $template_name );
my $mt =
Mojo::Template->new( vars => 1, encoding => 'UTF-8' )->parse($template);
for my $tweet (@tweets) {

if ( !$self->use_colors ) {
$ENV{ANSI_COLORS_DISABLED} = 0;
}
if ( !$self->use_colors ) {
$ENV{ANSI_COLORS_DISABLED} = 0;
}

for my $tweet (@tweets) {

my $content = $self->collapse_mentions( $tweet->text || '' );
if ( $tweet->source->nick && $self->expand_me ) {
Expand Down

0 comments on commit 67867b3

Please sign in to comment.