Prompt: when completion has only one candidate, next tab starts a new completion

This commit is contained in:
Maxime Coste 2012-12-11 13:44:14 +01:00
parent bc1a90d4f5
commit 92c4a9abce

View File

@ -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
{