diff --git a/src/normal.cc b/src/normal.cc index 32a5f1418..e7449b4e2 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1979,7 +1979,7 @@ void repeated(Context& context, NormalParams params) } template -void move(Context& context, NormalParams params) +void move_cursor(Context& context, NormalParams params) { kak_assert(mode == SelectMode::Replace or mode == SelectMode::Extend); const Type offset(direction * std::max(params.count,1)); @@ -2072,25 +2072,25 @@ template using KeymapBackend = Vector; static const HashMap keymap = { - { {'h'}, {"move left", move} }, - { {'j'}, {"move down", move} }, - { {'k'}, {"move up", move} }, - { {'l'}, {"move right", move} }, + { {'h'}, {"move left", move_cursor} }, + { {'j'}, {"move down", move_cursor} }, + { {'k'}, {"move up", move_cursor} }, + { {'l'}, {"move right", move_cursor} }, - { {Key::Left}, { "move left", move} }, - { {Key::Down}, { "move down", move} }, - { {Key::Up}, { "move up", move} }, - { {Key::Right}, {"move right", move} }, + { {Key::Left}, { "move left", move_cursor} }, + { {Key::Down}, { "move down", move_cursor} }, + { {Key::Up}, { "move up", move_cursor} }, + { {Key::Right}, {"move right", move_cursor} }, - { {'H'}, {"extend left", move} }, - { {'J'}, {"extend down", move} }, - { {'K'}, {"extend up", move} }, - { {'L'}, {"extend right", move} }, + { {'H'}, {"extend left", move_cursor} }, + { {'J'}, {"extend down", move_cursor} }, + { {'K'}, {"extend up", move_cursor} }, + { {'L'}, {"extend right", move_cursor} }, - { shift(Key::Left), {"extend left", move} }, - { shift(Key::Down), {"extend down", move} }, - { shift(Key::Up), {"extend up", move} }, - { shift(Key::Right), {"extend right", move} }, + { shift(Key::Left), {"extend left", move_cursor} }, + { shift(Key::Down), {"extend down", move_cursor} }, + { shift(Key::Up), {"extend up", move_cursor} }, + { shift(Key::Right), {"extend right", move_cursor} }, { {'t'}, {"select to next character", select_to_next_char} }, { {'f'}, {"select to next character included", select_to_next_char} },