ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/selection-popup
(Generate patch)

Comparing rxvt-unicode/src/perl/selection-popup (file contents):
Revision 1.16 by root, Thu Jan 19 21:03:34 2006 UTC vs.
Revision 1.17 by root, Fri Jan 20 10:27:08 2006 UTC

72 and $add_button->("shell quote" => sub { $_ = "\Q$_" }); 72 and $add_button->("shell quote" => sub { $_ = "\Q$_" });
73 73
74 /^(http|ftp|telnet|irc|news):\// 74 /^(http|ftp|telnet|irc|news):\//
75 and $add_button->("run $self->{browser}" => sub { $self->exec_async ($self->{browser}, $_) }); 75 and $add_button->("run $self->{browser}" => sub { $self->exec_async ($self->{browser}, $_) });
76 76
77 warn "hook for $self $self->{term}\n";#d#
77 for my $hook (@{ $self->{term}{selection_popup_hook} || [] }) { 78 for my $hook (@{ $self->{term}{selection_popup_hook} || [] }) {
78 if (my ($title, $cb) = $hook->($popup)) { 79 if (my ($title, $cb) = $hook->($popup)) {
79 $add_button->($title, $cb); 80 $add_button->($title, $cb);
80 } 81 }
81 } 82 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines