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.9 by root, Thu Jan 12 02:20:56 2006 UTC vs.
Revision 1.10 by root, Sat Jan 14 09:28:57 2006 UTC

70 /[\\"'\ \t|&;<>()]/ 70 /[\\"'\ \t|&;<>()]/
71 and $add_button->("shell quote" => sub { $_ = "\Q$_" }); 71 and $add_button->("shell quote" => sub { $_ = "\Q$_" });
72 72
73 /^(http|ftp|telnet|irc|news):\// 73 /^(http|ftp|telnet|irc|news):\//
74 and $add_button->("run $self->{browser}" => sub { urxvt::exec_async $self->{browser}, $_ }); 74 and $add_button->("run $self->{browser}" => sub { urxvt::exec_async $self->{browser}, $_ });
75
76 if (/^\s*((?:0x)?\d+)\s*$/) {
77 $popup->add_title (sprintf "%20s", eval $1);
78 $popup->add_title (sprintf "%20s", sprintf "0x%x", eval $1);
79 $popup->add_title (sprintf "%20s", sprintf "0%o", eval $1);
80 }
75 } 81 }
76 82
77 $popup->show; 83 $popup->show;
78 84
79 return 1; 85 return 1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines