From 447842ee4806639605c02c14babb36e147667a35 Mon Sep 17 00:00:00 2001 From: Tim Smart Date: Wed, 18 Jan 2012 19:40:38 +1300 Subject: [PATCH 1/2] Use selection_make instead of selection_grab. For some reason selection_grab was not working with my urxvt setup, however the selection_beg, selection_end and selection_make trio worked fine. Signed-off-by: Tim Smart --- url-select | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); From b4380973500a3a6568a9a44863178f51338ca88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Fri, 20 Jan 2012 23:26:58 +0100 Subject: [PATCH 2/2] url-select: increased version number --- url-select | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url-select b/url-select index 7f44fcd..f7b7eaf 100644 --- a/url-select +++ b/url-select @@ -2,7 +2,7 @@ # Author: Bert Muennich # Website: http://www.github.com/muennich/urxvt-perls # Based on: http://www.jukie.net/~bart/blog/urxvt-url-yank -# Version: git-20111224 +# Version: git-20120120 # License: GPLv2 # Use keyboard shortcuts to select URLs.