Only select a completion when the menu was visible (or its the only one)
This commit is contained in:
parent
90d446b2f4
commit
99ca7ead37
|
@ -763,7 +763,11 @@ public:
|
||||||
CandidateList& candidates = m_completions.candidates;
|
CandidateList& candidates = m_completions.candidates;
|
||||||
// first try, we need to ask our completer for completions
|
// first try, we need to ask our completer for completions
|
||||||
if (candidates.empty())
|
if (candidates.empty())
|
||||||
|
{
|
||||||
refresh_completions(CompletionFlags::None);
|
refresh_completions(CompletionFlags::None);
|
||||||
|
if (candidates.size() > 1)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (candidates.empty())
|
if (candidates.empty())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user