… | |
… | |
187 | $self->enable (key_press => \&matchlist_key_press); |
187 | $self->enable (key_press => \&matchlist_key_press); |
188 | } |
188 | } |
189 | |
189 | |
190 | sub most_recent { |
190 | sub most_recent { |
191 | my ($self) = shift; |
191 | my ($self) = shift; |
192 | my $row = $self->nrow; |
192 | my $row = $self->nrow - 1; |
193 | my @exec; |
193 | my @exec; |
194 | while($row-- > $self->top_row) { |
194 | while ($row >= $self->top_row) { |
|
|
195 | my $line = $self->line ($row); |
195 | @exec = $self->command_for($row); |
196 | @exec = $self->command_for($row); |
196 | last if(@exec); |
197 | last if(@exec); |
|
|
198 | |
|
|
199 | $row = $line->beg - 1; |
197 | } |
200 | } |
198 | if(@exec) { |
201 | if(@exec) { |
199 | return $self->exec_async (@exec); |
202 | return $self->exec_async (@exec); |
200 | } |
203 | } |
201 | () |
204 | () |