diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-07-19 15:34:49 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2022-07-21 16:43:54 +0200 |
| commit | a4696eb33a53a12f7bd7aad8259785cbf574b403 (patch) | |
| tree | 34b58c01b6b13531a6525b6d54c07fdee4fb05a4 /src/input_handler.cc | |
| parent | 559af669c77a3b3b6de0376f177ebbba5ebd0328 (diff) | |
Remove redundant check for menu bit
can_auto_insert_completion already requires the menu bit.
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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), |
