From 658b6b0f1aad8dc85c2a49bb50d50e71d0174f1e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 11 Dec 2021 08:12:08 +1100 Subject: Make space a named key to correctly handle shift modifier --- src/input_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index fbfadf81..ef25826b 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1003,7 +1003,7 @@ public: } else { - if (key == ' ' and + if (key == Key::Space and not (m_completions.flags & Completions::Flags::Quoted) and // if token is quoted, this space does not end it can_auto_insert_completion()) m_line_editor.insert_from(line.char_count_to(m_completions.start), -- cgit v1.2.3