-- 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:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

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

index 04e607330de1d8feced1a4851767ffb42ce2fc0f..

index ..58f413e97c62f0c437eb094163ff0a037108be11 100644

--- 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