From 92c4a9abcea350431678429df5288a82ddfb36ce Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 11 Dec 2012 13:44:14 +0100 Subject: [PATCH] Prompt: when completion has only one candidate, next tab starts a new completion --- src/input_handler.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/input_handler.cc b/src/input_handler.cc index 9f8667f7..ec461845 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -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 {