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

Fixed rawRange for multiwords

parent 0ca7fe8b
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,9 @@ Action Action::consumeCharacterIndex(util::utf8string consumed) ...@@ -81,6 +81,9 @@ Action Action::consumeCharacterIndex(util::utf8string consumed)
auto apply = [consumed](Config & config, Action &) auto apply = [consumed](Config & config, Action &)
{ {
config.moveCharacterIndex(consumed.size()); config.moveCharacterIndex(consumed.size());
config.getLastNotEmptyHyp(Config::rawRangeStartColName, config.getWordIndex()) = fmt::format("{}", config.getCharacterIndex());
config.getLastNotEmptyHyp(Config::rawRangeEndColName, config.getWordIndex()) = fmt::format("{}", config.getCharacterIndex() + consumed.size());
}; };
auto undo = [consumed](Config & config, Action &) auto undo = [consumed](Config & config, Action &)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment