mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-30 23:37:17 +03:00
Prompt: when completion has only one candidate, next tab starts a new completion
This commit is contained in:
parent
bc1a90d4f5
commit
92c4a9abce
@ -377,6 +377,11 @@ public:
|
||||
|
||||
m_line_editor.insert_from(line.char_count_to(m_completions.start),
|
||||
completion);
|
||||
|
||||
// when we have only one completion candidate, make next tab complete
|
||||
// from the new content.
|
||||
if (candidates.size() == 1)
|
||||
m_current_completion = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user