summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-03-09 23:24:20 +0000
committerMaxime Coste <frrrwww@gmail.com>2016-03-09 23:24:20 +0000
commit99ca7ead37ce5ee102b6dc4bdbf977119b347fb9 (patch)
tree283837e7ae7f21d693bc0e01e2edfa4ad962fa58 /src/input_handler.cc
parent90d446b2f41f4210eaf84577cf3db7e9557eed8f (diff)
Only select a completion when the menu was visible (or its the only one)
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 3871398d..b1e71ed3 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -763,7 +763,11 @@ public:
CandidateList& candidates = m_completions.candidates;
// first try, we need to ask our completer for completions
if (candidates.empty())
+ {
refresh_completions(CompletionFlags::None);
+ if (candidates.size() > 1)
+ return;
+ }
if (candidates.empty())
return;