summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/insert_completer.cc')
-rw-r--r--src/insert_completer.cc5
1 files changed, 0 insertions, 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()