Remove redundant check for menu bit

can_auto_insert_completion already requires the menu bit.
This commit is contained in:
Johannes Altmanninger 2022-07-19 15:34:49 +02:00
parent 559af669c7
commit a4696eb33a

View File

@ -788,7 +788,7 @@ public:
if (key == Key::Return) 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(); const String& completion = m_completions.candidates.front();
m_line_editor.insert_from(line.char_count_to(m_completions.start), m_line_editor.insert_from(line.char_count_to(m_completions.start),