--- rxvt-unicode/src/perl/matcher 2014/06/13 21:57:16 1.26 +++ rxvt-unicode/src/perl/matcher 2014/06/15 21:06:53 1.29 @@ -7,7 +7,7 @@ #:META:RESOURCE:%.button:string:the button, yeah #:META:RESOURCE:%.pattern.:string:extra pattern to match #:META:RESOURCE:%.launcher.:string:custom launcher for pattern -#:META:RESOURCE:%.rend.:string:custom rednition for pattern +#:META:RESOURCE:%.rend.:string:custom rendition for pattern =head1 NAME @@ -226,7 +226,6 @@ # fetch the line that has changed my $line = $self->line ($row); my $text = $line->t; - my $i = 0; # find all urls (if any) for my $matcher (@{$self->{matchers}}) { @@ -258,7 +257,7 @@ my ($self, $row, $col) = @_; my $line = $self->line ($row); my $text = $line->t; - my $off = $line->offset_of ($row, $col) if $col; + my $off = $line->offset_of ($row, $col) if defined $col; my @matches; for my $matcher (@{$self->{matchers}}) {