diff --git a/url-select b/url-select index fc333e9..f4ddda8 100644 --- a/url-select +++ b/url-select @@ -95,8 +95,7 @@ sub line_update { for my $pattern (@{$self->{pattern}}) { while ($text =~ /$pattern/g) { my $url = $&; - my ($beg, $end) = ($-[1], $+[1] - 1); - --$end if $url =~ /["')]$/; + my ($beg, $end) = ($-[0], $+[0] - 1); for (@{$rend}[$beg .. $end]) { $_ |= urxvt::RS_Uline;