readline: force escape row display regardless of visible modes
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 27 Mar 2012 21:07:36 +0000 (23:07 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 10 Apr 2012 01:03:24 +0000 (03:03 +0200)
Shiar_Sheet/Keyboard.pm
readline.inc.pl

index 8f436a64aa2ad6e4026e3f4def5e9c594f5f38e9..6819236812e00c2e4126d17383766d59481b151c 100644 (file)
@@ -134,6 +134,7 @@ sub print_rows {
                printf qq{<li class="row row%d"><ul>\n}, $row+1;
                for my $basemode (@modes) {
                        my @moderows = split /\s+/,
+                               $row < 0 ? "0" :
                                defined $moderows{$basemode} ? $moderows{$basemode} : $moderows{-DEFAULT};
 
                for my $submode (@moderows ? @moderows : '') {
index ea94799681c63bb12c11484ff78da6b69014d779..598d652f3fa9ef8f226bc91c12ac5078e604cc3d 100644 (file)
@@ -2,6 +2,8 @@ use utf8;
 {
 
 '' => {
+       "\e" => ['mv', '+'],
+
        '+<' => ['co'],
        '+=' => '+?', #TODO: new # emacs, not in v2.0
        '+>' => ['co'],
@@ -80,6 +82,8 @@ use utf8;
 '^x' => {
        lead => $ascii ? "'x"  : "x̂",
 
+       "\e" => ['mv mode', '+'],
+
        '('  => ['mv'],
        ')'  => ['mv'],
        'e'  => ['mv'],