From def33de9bc78cb8109034ed5e015b5b39316cd55 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 22 Mar 2015 11:39:51 +0000 Subject: [PATCH] Check modifiers before inserting codepoints in the line editor --- 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 b0c6b8b4..08412a02 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -286,7 +286,7 @@ public: to_next_word_end(m_cursor_pos, m_line); else if (key == ctrlalt('e')) to_next_word_end(m_cursor_pos, m_line); - else + else if (key.modifiers == Key::Modifiers::None) { m_line = m_line.substr(0, m_cursor_pos) + codepoint_to_str(key.key) + m_line.substr(m_cursor_pos);