Only select a completion when the menu was visible (or its the only one)

This commit is contained in:
Maxime Coste 2016-03-09 23:24:20 +00:00
parent 90d446b2f4
commit 99ca7ead37

View File

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