summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc5
1 files changed, 5 insertions, 0 deletions
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
{