summaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorsterling <sterling>2011-10-11 23:30:24 +0000
committersterling <sterling>2011-10-11 23:30:24 +0000
commit89ffcb7c106029175ad3c583b4df28699149a6ab (patch)
treed41b3f6c98a71d926acf561780d65d3cb8e6bf6b /readline
parent03879948fbdef06379f77d7e894723ec107e15a0 (diff)
downloadgdb-89ffcb7c106029175ad3c583b4df28699149a6ab.tar.gz
2011-10-11 Sterling Augustine <saugustine@google.com>
* dwarf2read.c: Undo inadvertent changes in previous commit.
Diffstat (limited to 'readline')
-rw-r--r--readline/complete.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/readline/complete.c b/readline/complete.c
index a9c46dfc15e..7a1e6d98c57 100644
--- a/readline/complete.c
+++ b/readline/complete.c
@@ -1994,7 +1994,8 @@ rl_completion_matches (text, entry_function)
match_list[1] = (char *)NULL;
_rl_interrupt_immediately++;
- while (string = (*entry_function) (text, matches))
+ while (string = (*entry_function) (text, matches)
+ && matches <= rl_completion_query_items)
{
if (matches + 1 == match_list_size)
match_list = (char **)xrealloc