]> git.ipfire.org Git - thirdparty/readline.git/commitdiff
readline-7.0 patch 5
authorChet Ramey <chet.ramey@case.edu>
Fri, 1 Jun 2018 14:17:53 +0000 (10:17 -0400)
committerChet Ramey <chet.ramey@case.edu>
Fri, 1 Jun 2018 14:17:53 +0000 (10:17 -0400)
patchlevel
readline.c

index 626a945e08fbd8926846afabedb8740ebf1720c7..e0ba09d8b5a8bfb97125732919b6d1c27b11b2b2 100644 (file)
@@ -1,3 +1,3 @@
 # Do not edit -- exists only for use by patch
 
-4
+5
index e51df4f0c183ab123106b26eb3555b768d108248..a05b35e5d24983dbdcfbcffd6d7887eb9c54ea09 100644 (file)
@@ -1057,7 +1057,7 @@ _rl_subseq_result (r, map, key, got_subseq)
        /* We probably shadowed a keymap, so keep going. */
        r = _rl_dispatch (ANYOTHERKEY, m);
     }
-  else if (r && map[ANYOTHERKEY].function)
+  else if (r < 0 && map[ANYOTHERKEY].function)
     {
       /* We didn't match (r is probably -1), so return something to
         tell the caller that it should try ANYOTHERKEY for an
@@ -1069,7 +1069,7 @@ _rl_subseq_result (r, map, key, got_subseq)
       _rl_dispatching_keymap = map;
       return -2;
     }
-  else if (r && got_subseq)
+  else if (r < 0 && got_subseq)                /* XXX */
     {
       /* OK, back up the chain. */
       if (RL_ISSTATE (RL_STATE_MACROINPUT))