ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/matcher
(Generate patch)

Comparing rxvt-unicode/src/perl/matcher (file contents):
Revision 1.35 by sf-exg, Tue Mar 17 09:25:16 2015 UTC vs.
Revision 1.36 by sf-exg, Wed Jul 14 12:39:57 2021 UTC

423 if (@matches) { 423 if (@matches) {
424 @matches = sort { $a->[0] <=> $b->[0] or $a->[1] <=> $b->[1] } @matches; 424 @matches = sort { $a->[0] <=> $b->[0] or $a->[1] <=> $b->[1] } @matches;
425 $self->{matches} = \@matches; 425 $self->{matches} = \@matches;
426 $self->{cur_row} = $row; 426 $self->{cur_row} = $row;
427 $self->{id} = $dir < 0 ? @{ $self->{matches} } - 1 : 0; 427 $self->{id} = $dir < 0 ? @{ $self->{matches} } - 1 : 0;
428 $self->view_start (List::Util::min 0, $row - ($self->nrow >> 1)); 428 $self->view_start ($row - ($self->nrow >> 1));
429 $self->want_refresh; 429 $self->want_refresh;
430 return 1; 430 return 1;
431 } 431 }
432 432
433 $row = $dir < 0 ? $line->beg - 1 : $line->end + 1; 433 $row = $dir < 0 ? $line->beg - 1 : $line->end + 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines