diff --git a/url-select b/url-select index 7b07b20..7f44fcd 100644 --- a/url-select +++ b/url-select @@ -101,8 +101,12 @@ sub key_press { $self->exec_async(@{$self->{browser}}, ${$self->{found}[$self->{n}]}[4]); deactivate($self) unless $char eq 'o'; } elsif ($char eq 'y') { - $self->selection(${$self->{found}[$self->{n}]}[4]); - $self->selection_grab($event->{time}); + my $found = $self->{found}[$self->{n}]; + $self->selection_beg(${$found}[0], ${$found}[1]); + $self->selection_end(${$found}[2], ${$found}[3]); + $self->selection_make($event->{time}); + $self->selection_beg(1, 0); + $self->selection_end(1, 0); deactivate($self); } elsif ($char eq 'k' || $keysym == 0xff52 || $keysym == 0xff51) { select_next($self, -1);