From 6dca67c6747c7fcf9023b23948314f1727b1e934 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 19 Jun 2018 07:40:52 +1000 Subject: Fix two requiered to access last completion in prompt A single should be enough. --- src/input_handler.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/input_handler.cc') 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; } -- cgit v1.2.3