--- rxvt-unicode/src/perl/searchable-scrollback 2006/01/12 10:02:20 1.17 +++ rxvt-unicode/src/perl/searchable-scrollback 2006/01/12 11:16:36 1.19 @@ -107,6 +107,8 @@ sub refresh { my ($self) = @_; + return unless $self->{found}; + my $xor = urxvt::RS_RVid | urxvt::RS_Blink; for (@{ $self->{found} }) { $self->scr_xor_span (@$_, $xor); @@ -145,7 +147,7 @@ substr $self->{search}, -1, 1, ""; $self->search; $self->idle; - } elsif ($string =~ /^[^\x00-\x1f\x80-\xaf]+$/) { + } elsif ($string !~ /[\x00-\x1f\x80-\xaf]/) { return; # pass to tt_write }