Revision: | 1.3 |
Committed: | Fri Jan 13 12:18:16 2012 UTC (12 years, 5 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. |
# | Content |
---|---|
1 | #! perl |
2 | |
3 | sub on_register_command { |
4 | my ($self, $keysym, $state, $str) = @_; |
5 | |
6 | if ($str =~ /^list(.)/) { |
7 | my @list = split /\Q$1/, $str; |
8 | if (@list == 3 or @list == 4) { |
9 | $self->register_command ($keysym++, $state, "$list[1]$_$list[3]") |
10 | for split //, $list[2]; |
11 | |
12 | return 1; |
13 | } |
14 | |
15 | warn "unable to parse keysym '$str' as list, processing as normal keysym\n"; |
16 | } |
17 | |
18 | () |
19 | } |