From 09d2998e5cf4587a466aeccd759c48b0c7eca1bc Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 13 Sep 2015 10:39:18 -0700 Subject: Don't supply trivial completion which matches prefix. * parser.c (find_matching_syms): Don't add an entry into the history if it is a full match for the completion prefix, because in the UI in then looks as if nothing happened when Tab as pressed. --- parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parser.c b/parser.c index 8719b03d..31db6aab 100644 --- a/parser.c +++ b/parser.c @@ -401,6 +401,9 @@ static void find_matching_syms(lino_completions_t *cpl, break; } + if (equal(name, prefix)) + continue; + if (qualify) comple = format(nil, lit("~a~a:~a"), line_prefix, pkg_name, name, nao); else -- cgit v1.2.3