From 0cf71910336e07ff1bde6cf26e2fd3161f059f07 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 9 Feb 2022 12:43:36 +0100 Subject: Make Shift+Space insert a space in insert mode Terminals that support CSI u escape codes (like iTerm2, Kitty and foot) allow us to map independently of . Users expect that inputs a space character; make it so. Fixes #4534 Also reported in https://discuss.kakoune.com/t/shift-space-doesnt-send-space-character/2004 --- 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 26d255c0..5aba382d 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1003,7 +1003,7 @@ public: } else { - if (key == Key::Space and + if ((key == Key::Space or key == shift(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