summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-11-26 19:38:07 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-11-26 19:38:07 +0100
commit557128b641e7704715b72ebeabd4fc85b4f08d58 (patch)
treee74f383c52da99ca34e511efdf32cc45853c1dbb /src/input_handler.cc
parentcad4d3c01edd47bdb9dccd6b9998e0d9eaa4c65c (diff)
IncrementalInsert::move_cursors: use overloaded for LineCount/CharCount editor implementation
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 00365d90..fc0d6649 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -502,13 +502,13 @@ public:
else if (key == Key::Backspace)
m_inserter.erase();
else if (key == Key::Left)
- m_inserter.move_cursors({0, -1});
+ m_inserter.move_cursors(-1_char);
else if (key == Key::Right)
- m_inserter.move_cursors({0, 1});
+ m_inserter.move_cursors(1_char);
else if (key == Key::Up)
- m_inserter.move_cursors({-1, 0});
+ m_inserter.move_cursors(-1_line);
else if (key == Key::Down)
- m_inserter.move_cursors({ 1, 0});
+ m_inserter.move_cursors(1_line);
else if (key.modifiers == Key::Modifiers::None)
{
m_inserter.insert(codepoint_to_str(key.key));