This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: complete -vs- duplicates, take 2


>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> writes:

Eli> But I'm still missing something: how do the other changes (in
Eli> cli-cmds.c) avoid removing duplicates twice?  I see that you
Eli> added duplicate removal to cli-cmds.c, but how does that prevent
Eli> Readline from doing the same again?  What am I missing?

Only the `complete' command calls the code in cli-cmds.c.  readline
still calls line_completion_function, which still returns duplicates.
So the duplicate removal code is only run once in either case.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]