80 |
my $cols = $self->screen->cols; |
my $cols = $self->screen->cols; |
81 |
|
|
82 |
my $t = shift; |
my $t = shift; |
83 |
|
|
84 |
|
$t =~ s/{s}//; |
85 |
|
|
86 |
$t = '' unless defined $t; |
$t = '' unless defined $t; |
87 |
$t = substr($t,0,$cols) if length($t) > $cols; |
$t = substr($t,0,$cols) if length($t) > $cols; |
88 |
return $t . (" " x ($cols - length($t))); |
return $t . (" " x ($cols - length($t))); |
224 |
my $callback = shift; |
my $callback = shift; |
225 |
confess "expect callback as first arg" unless ref($callback) eq 'CODE'; |
confess "expect callback as first arg" unless ref($callback) eq 'CODE'; |
226 |
|
|
227 |
my @lines = $self->lines; |
my @lines = @{ $self->lines }; |
228 |
|
|
229 |
# find which lines are selectable in input file |
# find which lines are selectable in input file |
230 |
for my $l (0 .. $#lines) { |
for my $l (0 .. $#lines) { |