--- rxvt-unicode/src/perl/selection-popup 2006/01/19 09:47:15 1.14 +++ rxvt-unicode/src/perl/selection-popup 2006/01/19 16:22:13 1.15 @@ -21,8 +21,6 @@ () } -our @hook; - sub on_button_press { my ($self, $event) = @_; @@ -73,7 +71,7 @@ /^(http|ftp|telnet|irc|news):\// and $add_button->("run $self->{browser}" => sub { $self->exec_async ($self->{browser}, $_) }); - for my $hook (@hook) { + for my $hook (@{ $self->{term}{selection_popup_hook} || [] }) { if (my ($title, $cb) = $hook->($popup)) { $add_button->($title, $cb); }