Minor fix on the function to move cursor after selection.
This commit is contained in:
parent
9ade7d16a9
commit
bfa272ac65
|
@ -212,7 +212,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/McBopomofo-visualization.dot
|
||||||
}
|
}
|
||||||
nextPosition += node.spanningLength;
|
nextPosition += node.spanningLength;
|
||||||
}
|
}
|
||||||
if (nextPosition < _builder->length()) {
|
if (nextPosition <= _builder->length()) {
|
||||||
_builder->setCursorIndex(nextPosition);
|
_builder->setCursorIndex(nextPosition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue