vim: fix display of non-default 'keys' setting
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 10 Oct 2008 23:34:04 +0000 (23:34 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 10 Oct 2008 23:34:04 +0000 (23:34 +0000)
A trailing 1 was accidentally shown if keys were defined.
Broken by v1.1-6-ga7550acb [prefer logical over ternary conditionals]
which was to be expected :P.

index.plp

index 94a77886a38e384342c8ba63635d013e30646f6e..a482b588982dc5a20657f0e0376674e00ab29cbc 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -236,7 +236,7 @@ for (my $row = 0; $row <= $#$keyrows; $row++) {
                                $ascii ? 'on' : 'off' :></em>
                <li><strong>keys</strong> are
                        <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
-                               exists $get{keys} || ' by default' :>
+                               !exists $get{keys} && ' by default' :>
                <li>default <strong>style</strong> is
                        <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
                </ul>