Minor fix on the function to move cursor after selection.

This commit is contained in:
zonble 2022-02-04 00:09:44 +08:00
parent 9ade7d16a9
commit bfa272ac65
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/McBopomofo-visualization.dot
}
nextPosition += node.spanningLength;
}
if (nextPosition < _builder->length()) {
if (nextPosition <= _builder->length()) {
_builder->setCursorIndex(nextPosition);
}
}