From: sf-exg Date: Thu, 1 Apr 2010 18:36:23 +0000 (+0000) Subject: Fix searchable-scrollback to not ignore the first line. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=eadb9f1e96ddaebeb41f955a79b69b544d5e1ac7;p=dana%2Furxvt.git Fix searchable-scrollback to not ignore the first line. --- 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;