Merge remote-tracking branch 'krobelus/no-redundant-menu'

This commit is contained in:
Maxime Coste 2022-07-24 10:10:51 +10:00
commit 626e1fec43

View File

@ -788,7 +788,7 @@ public:
if (key == Key::Return)
{
if ((m_completions.flags & Completions::Flags::Menu) and can_auto_insert_completion())
if (can_auto_insert_completion())
{
const String& completion = m_completions.candidates.front();
m_line_editor.insert_from(line.char_count_to(m_completions.start),