Skip to content
Snippets Groups Projects
Commit 40d44fc4 authored by Franck Dary's avatar Franck Dary
Browse files

Fixed undo of moving actions

parent 0ee07e46
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ Action Action::moveWordIndex(int movement)
auto undo = [movement](Config & config, Action &)
{
config.moveWordIndex(movement);
config.moveWordIndex(-movement);
};
auto appliable = [movement](const Config & config, const Action &)
......@@ -56,7 +56,7 @@ Action Action::moveCharacterIndex(int movement)
auto undo = [movement](Config & config, Action &)
{
config.moveCharacterIndex(movement);
config.moveCharacterIndex(-movement);
};
auto appliable = [movement](const Config & config, const Action &)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment