-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: bb3e9f8a8a387252e9871abbf02b56a962125c70: path_to: revision_to:
commit bb3e9f8a8a387252e9871abbf02b56a962125c70 Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com> Date: Wed Jul 30 15:22:51 2014 +0000 Do not needlessly scan the same line multiple times in matcher:most_recent. diff --git a/src/perl/matcher b/src/perl/matcher
--- a/src/perl/matcher +++ b/src/perl/matcher @@ -189,11 +189,14 @@ sub matchlist { sub most_recent { my ($self) = shift; - my $row = $self->nrow; + my $row = $self->nrow - 1; my @exec; - while($row-- > $self->top_row) { + while ($row >= $self->top_row) { + my $line = $self->line ($row); @exec = $self->command_for($row); last if(@exec); + + $row = $line->beg - 1; } if(@exec) { return $self->exec_async (@exec);
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 10:08:48 2024