Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Franck Dary
macaon
Commits
032ca410
Commit
032ca410
authored
Sep 10, 2020
by
Franck Dary
Browse files
Fixed rawRange for multiwords
parent
0ca7fe8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
reading_machine/src/Action.cpp
View file @
032ca410
...
...
@@ -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
&
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment