ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/searchable-scrollback
(Generate patch)

Comparing rxvt-unicode/src/perl/searchable-scrollback (file contents):
Revision 1.17 by root, Thu Jan 12 10:02:20 2006 UTC vs.
Revision 1.19 by root, Thu Jan 12 11:16:36 2006 UTC

105} 105}
106 106
107sub refresh { 107sub refresh {
108 my ($self) = @_; 108 my ($self) = @_;
109 109
110 return unless $self->{found};
111
110 my $xor = urxvt::RS_RVid | urxvt::RS_Blink; 112 my $xor = urxvt::RS_RVid | urxvt::RS_Blink;
111 for (@{ $self->{found} }) { 113 for (@{ $self->{found} }) {
112 $self->scr_xor_span (@$_, $xor); 114 $self->scr_xor_span (@$_, $xor);
113 $xor = urxvt::RS_RVid; 115 $xor = urxvt::RS_RVid;
114 } 116 }
143 $self->search (+1); 145 $self->search (+1);
144 } elsif ($keysym == 0xff08) { # backspace 146 } elsif ($keysym == 0xff08) { # backspace
145 substr $self->{search}, -1, 1, ""; 147 substr $self->{search}, -1, 1, "";
146 $self->search; 148 $self->search;
147 $self->idle; 149 $self->idle;
148 } elsif ($string =~ /^[^\x00-\x1f\x80-\xaf]+$/) { 150 } elsif ($string !~ /[\x00-\x1f\x80-\xaf]/) {
149 return; # pass to tt_write 151 return; # pass to tt_write
150 } 152 }
151 153
152 1 154 1
153} 155}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines