From fb98ff652dbe48d51a53f96c5ff99c09fff008bb Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 27 Jan 2015 00:44:07 +0000 Subject: [PATCH] Keep all completion matches when selecting a candidate --- src/insert_completer.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/insert_completer.cc b/src/insert_completer.cc index bcfca6dc..9d9bc7cd 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -282,11 +282,6 @@ void InsertCompleter::select(int offset) m_context.ui().info_show(candidate.first, candidate.second, CharCoord{}, get_face("Information"), InfoStyle::MenuDoc); } - // when we select a match, remove non displayed matches from the candidates - // which are considered as invalid with the new completion timestamp - m_completions.candidates.clear(); - std::copy(m_matching_candidates.begin(), m_matching_candidates.end()-1, - std::back_inserter(m_completions.candidates)); } void InsertCompleter::update()