From 96408a79fd77b564fa9675bdd362151d291cb144 Mon Sep 17 00:00:00 2001 From: Sterling Augustine Date: Tue, 11 Oct 2011 23:30:27 +0000 Subject: 2011-10-11 Sterling Augustine * dwarf2read.c: Undo inadvertent changes in previous commit. --- readline/complete.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'readline') 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 -- cgit v1.1