git.shiar.nl
/
barcat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup superfluous hide checks in show_lines()
[barcat.git]
/
barcat
diff --git
a/barcat
b/barcat
index 0d843c13e177580776d2b81e4556f38961c0b4e7..9e78016da65ae77b843d876d1702823a2052a5a2 100755
(executable)
--- a/
barcat
+++ b/
barcat
@@
-193,9
+193,8
@@
sub sival {
sub show_lines {
state $nr = $opt{hidemin};
sub show_lines {
state $nr = $opt{hidemin};
-@lines and @lines > $nr or return;
@lines or return;
@lines or return;
-@lines > $nr or return
unless $opt{hidemin}
;
+@lines > $nr or return;
@order = sort { $b <=> $a } @order unless tied @order;
my $maxval = $opt{maxval} // (
@order = sort { $b <=> $a } @order unless tied @order;
my $maxval = $opt{maxval} // (
@@
-245,8
+244,6
@@
if ($opt{markers} and $size > 0) {
}
}
}
}
-@lines > $nr or return if $opt{hidemin};
-
say(
color(31), sprintf('%*s', $lenval, $minval),
color(90), '-', color(36), '+',
say(
color(31), sprintf('%*s', $lenval, $minval),
color(90), '-', color(36), '+',