Fix two <s-tab> requiered to access last completion in prompt
A single <s-tab> should be enough.
This commit is contained in:
parent
b1605d046b
commit
6dca67c674
|
@ -961,6 +961,7 @@ private:
|
||||||
auto prefix = line.substr(m_completions.start, m_completions.end - m_completions.start);
|
auto prefix = line.substr(m_completions.start, m_completions.end - m_completions.start);
|
||||||
if (not contains(m_completions.candidates, prefix))
|
if (not contains(m_completions.candidates, prefix))
|
||||||
{
|
{
|
||||||
|
m_current_completion = m_completions.candidates.size();
|
||||||
m_completions.candidates.push_back(prefix.str());
|
m_completions.candidates.push_back(prefix.str());
|
||||||
m_prefix_in_completions = true;
|
m_prefix_in_completions = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
:my-command <s-tab><s-tab><ret>
|
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
ccc
|
|
@ -0,0 +1 @@
|
||||||
|
def my-command -params 0..1 -shell-candidates %{ printf "aaa\nbbb\nccc" } %{ exec i %arg{1} <esc> }
|
Loading…
Reference in New Issue
Block a user