Fix two <s-tab> requiered to access last completion in prompt

A single <s-tab> should be enough.
This commit is contained in:
Maxime Coste 2018-06-19 07:40:52 +10:00
parent b1605d046b
commit 6dca67c674
5 changed files with 5 additions and 0 deletions

View File

@ -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;
}

View File

@ -0,0 +1 @@
:my-command <s-tab><s-tab><ret>

View File

@ -0,0 +1 @@
ccc

View File

@ -0,0 +1 @@
def my-command -params 0..1 -shell-candidates %{ printf "aaa\nbbb\nccc" } %{ exec i %arg{1} <esc> }