summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 03e17f09..51453e08 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -961,6 +961,7 @@ private:
auto prefix = line.substr(m_completions.start, m_completions.end - m_completions.start);
if (not contains(m_completions.candidates, prefix))
{
+ m_current_completion = m_completions.candidates.size();
m_completions.candidates.push_back(prefix.str());
m_prefix_in_completions = true;
}