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

Comparing rxvt-unicode/src/perl/keysym-list (file contents):
Revision 1.2 by root, Sat Dec 3 09:56:40 2011 UTC vs.
Revision 1.3 by sf-exg, Fri Jan 13 12:18:16 2012 UTC

3sub on_register_command { 3sub on_register_command {
4 my ($self, $keysym, $state, $str) = @_; 4 my ($self, $keysym, $state, $str) = @_;
5 5
6 if ($str =~ /^list(.)/) { 6 if ($str =~ /^list(.)/) {
7 my @list = split /\Q$1/, $str; 7 my @list = split /\Q$1/, $str;
8 if (@list == 4) { 8 if (@list == 3 or @list == 4) {
9 $self->register_command ($keysym++, $state, "$list[1]$_$list[3]") 9 $self->register_command ($keysym++, $state, "$list[1]$_$list[3]")
10 for split //, $list[2]; 10 for split //, $list[2];
11 11
12 return 1; 12 return 1;
13 } 13 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines