ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/keysym-list
Revision: 1.3
Committed: Fri Jan 13 12:18:16 2012 UTC (12 years, 4 months ago) by sf-exg
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_15
Changes since 1.2: +1 -1 lines
Log Message:
Fix regression in keysym list expansion.

Allow again an empty suffix, patch by Sung Pae.

File Contents

# User Rev Content
1 sf-exg 1.1 #! perl
2    
3     sub on_register_command {
4 root 1.2 my ($self, $keysym, $state, $str) = @_;
5 sf-exg 1.1
6 root 1.2 if ($str =~ /^list(.)/) {
7     my @list = split /\Q$1/, $str;
8 sf-exg 1.3 if (@list == 3 or @list == 4) {
9 root 1.2 $self->register_command ($keysym++, $state, "$list[1]$_$list[3]")
10     for split //, $list[2];
11 sf-exg 1.1
12 root 1.2 return 1;
13     }
14 sf-exg 1.1
15 root 1.2 warn "unable to parse keysym '$str' as list, processing as normal keysym\n";
16     }
17    
18     ()
19 sf-exg 1.1 }