Commit 032ca410 authored by Franck Dary's avatar Franck Dary
Browse files

Fixed rawRange for multiwords

parent 0ca7fe8b
......@@ -81,6 +81,9 @@ Action Action::consumeCharacterIndex(util::utf8string consumed)
auto apply = [consumed](Config & config, Action &)
{
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 &)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment