X-Git-Url: http://git.shiar.nl/barcat.git/blobdiff_plain/2f41dadf7f9a08522a7e84cfd28f847fd1428366..dc38ca198369f674b29911f761338aac420f2db6:/barcat diff --git a/barcat b/barcat index cdb41da..4cb2cd1 100755 --- a/barcat +++ b/barcat @@ -112,7 +112,7 @@ while (readline) { my $trimpos = abs $opt{trim}; $trimpos -= length $1 if $opt{unmodified}; if ($trimpos <= 1) { - $_ = substr $_, 0, 1; + $_ = substr $_, 0, 2; } elsif (length > $trimpos) { substr($_, $trimpos - 1) = '…';