diff options
| author | Maxime Coste <mawww@kakoune.org> | 2022-07-24 10:10:51 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2022-07-24 10:10:51 +1000 |
| commit | 626e1fec4354fa94afb8252bb3415666d0ea2a4c (patch) | |
| tree | cd13c4faf2b2fac32466fcd59949d40722159afb /src/input_handler.cc | |
| parent | 34c489170f94a23493b958514039cc839d6a3f0d (diff) | |
| parent | a4696eb33a53a12f7bd7aad8259785cbf574b403 (diff) | |
Merge remote-tracking branch 'krobelus/no-redundant-menu'
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), |
