X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tig.pl;h=5fc7625ea46ff91162aab61c897dc3fdc06790f3;hb=038da645d825eb46018d0e92317594e54b37250e;hp=e3affa8a059de0fc96096ec74fa54f58505b9226;hpb=78a901d372af527c99e8860799f7655ba73a4cee;p=config%2Fdotfiles.git diff --git a/tig.pl b/tig.pl index e3affa8..5fc7625 100755 --- a/tig.pl +++ b/tig.pl @@ -60,6 +60,8 @@ while (my $line = <$fh>) { my $message = $5; my $refs = $6; + # Strip trailing whitespace. + $prefix =~ s/\s+$//; # Color "graph". $prefix =~ s/\|/colored($&, $color_graph)/ge;