]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - tig.pl
tig.pl: Strip superfluous whitespace.
[config/dotfiles.git] / tig.pl
diff --git a/tig.pl b/tig.pl
index e3affa8a059de0fc96096ec74fa54f58505b9226..5fc7625ea46ff91162aab61c897dc3fdc06790f3 100755 (executable)
--- 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;