summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-03-22 11:39:51 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-03-22 11:41:19 +0000
commitdef33de9bc78cb8109034ed5e015b5b39316cd55 (patch)
tree76f78cd2d23d7222d6d99d4d8db44ca6bdab01d6 /src/input_handler.cc
parent7a7f86a205f5fbc74ad16967c1c24cf3aa46aab1 (diff)
Check modifiers before inserting codepoints in the line editor
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 1 insertions, 1 deletions
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<Word>(m_cursor_pos, m_line);
else if (key == ctrlalt('e'))
to_next_word_end<WORD>(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);