From eadb9f1e96ddaebeb41f955a79b69b544d5e1ac7 Mon Sep 17 00:00:00 2001 From: sf-exg Date: Thu, 1 Apr 2010 18:36:23 +0000 Subject: [PATCH] Fix searchable-scrollback to not ignore the first line. --- Changes | 3 ++- src/perl/searchable-scrollback | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 19899632..e2ae8c5b 100644 --- a/Changes +++ b/Changes @@ -21,10 +21,11 @@ DUMB: support tex fonts TODO: perl-shell-window? TODO: zweimal numlock? falsche codes rxvt urxvt for numpad? -TODO: scrollback search does not find every first line? TODO: - upgrade to libev-4.00. TODO: make fontCount dependent on ENABLE_256... in an INTELLIGENT way + - searchable-scrollback no longer ignores the first line + (Emanuele Giaquinta). - add support for 256 colors. - add support for grabbing the clipboard selection and extend selection{_clear,_grab,} perl bindings to optionally work diff --git a/src/perl/searchable-scrollback b/src/perl/searchable-scrollback index 238189b5..569a42fb 100644 --- a/src/perl/searchable-scrollback +++ b/src/perl/searchable-scrollback @@ -82,7 +82,7 @@ sub search { no re 'eval'; # just to be sure if (my $re = eval { qr/$search/ }) { - while ($self->nrow > $row && $row > $self->top_row) { + while ($self->nrow > $row && $row >= $self->top_row) { my $line = $self->line ($row) or last; -- 2.34.1