aboutsummaryrefslogtreecommitdiff
path: root/readline/complete.c
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2011-10-11 23:30:27 +0000
committerSterling Augustine <saugustine@google.com>2011-10-11 23:30:27 +0000
commit96408a79fd77b564fa9675bdd362151d291cb144 (patch)
treec766d973e8106a51bea66861cf1884b66dca0b5e /readline/complete.c
parent4391ee7045a3578346611f2ef52159d128be93a8 (diff)
downloadgdb-96408a79fd77b564fa9675bdd362151d291cb144.zip
gdb-96408a79fd77b564fa9675bdd362151d291cb144.tar.gz
gdb-96408a79fd77b564fa9675bdd362151d291cb144.tar.bz2
2011-10-11 Sterling Augustine <saugustine@google.com>
* dwarf2read.c: Undo inadvertent changes in previous commit.
Diffstat (limited to 'readline/complete.c')
-rw-r--r--readline/complete.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/readline/complete.c b/readline/complete.c
index a9c46df..7a1e6d9 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