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.19 by root, Wed Mar 8 15:43:02 2006 UTC vs.
Revision 1.20 by ayin, Wed Oct 31 18:12:27 2007 UTC

72 and $add_button->("uri unescape" => sub { s/%([0-9a-fA-F]{2})/chr hex $1/ge }); 72 and $add_button->("uri unescape" => sub { s/%([0-9a-fA-F]{2})/chr hex $1/ge });
73 73
74 /[\\"'\ \t|&;<>()]/ 74 /[\\"'\ \t|&;<>()]/
75 and $add_button->("shell quote" => sub { $_ = "\Q$_" }); 75 and $add_button->("shell quote" => sub { $_ = "\Q$_" });
76 76
77 /^(http|ftp|telnet|irc|news):\// 77 /^(https?|ftp|telnet|irc|news):\//
78 and $add_button->("run $self->{browser}" => sub { $self->exec_async ($self->{browser}, $_) }); 78 and $add_button->("run $self->{browser}" => sub { $self->exec_async ($self->{browser}, $_) });
79 79
80 for my $hook (@{ $self->{term}{selection_popup_hook} || [] }) { 80 for my $hook (@{ $self->{term}{selection_popup_hook} || [] }) {
81 if (my ($title, $cb) = $hook->($popup)) { 81 if (my ($title, $cb) = $hook->($popup)) {
82 $add_button->($title, $cb); 82 $add_button->($title, $cb);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines