Properly merge completers with null elements
commitb9f1f158fe761479ad61988c16576e02e89e408d
authorDavid Kettler <kettler@internode.on.net>
Sun, 22 Nov 2009 11:12:51 +0000 (22 21:42 +1030)
committerDavid Kettler <kettler@internode.on.net>
Sun, 22 Nov 2009 11:14:03 +0000 (22 21:44 +1030)
tree3751a6226bae5cc3648e6cc417ed488ab8f2cf8e
parent655cd766f8933abb682fa3f2fcfb582e1a5c1991
Properly merge completers with null elements

When a completer does not support an element it was possible for merge
completers to erroneously call the next completer with a negative
index.  For instance, this occurred with the wikipedia webjump, for
which the search engine does not provide descriptions for its
completions.

This latent bug was exposed by 2005f2e (Let completion functions set
the match_required state) because more completers can now be on the
completion list, even if they have no results.
modules/minibuffer-completion.js