From a4696eb33a53a12f7bd7aad8259785cbf574b403 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 19 Jul 2022 15:34:49 +0200 Subject: [PATCH] Remove redundant check for menu bit can_auto_insert_completion already requires the menu bit. --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input_handler.cc b/src/input_handler.cc index 4f67678e..b35cde29 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -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),