summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-06-19 07:40:52 +1000
committerMaxime Coste <mawww@kakoune.org>2018-06-19 07:40:52 +1000
commit6dca67c6747c7fcf9023b23948314f1727b1e934 (patch)
treec2aaf54215d649cd5b6af7eeb6d9430f94cacee1 /src/input_handler.cc
parentb1605d046b168192a050809ec8d8304279795326 (diff)
Fix two <s-tab> requiered to access last completion in prompt
A single <s-tab> should be enough.
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;
}