Keep all completion matches when selecting a candidate

This commit is contained in:
Maxime Coste 2015-01-27 00:44:07 +00:00
parent 2c425bb436
commit fb98ff652d

View File

@ -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()