diff --git a/Source/KeyHandler.mm b/Source/KeyHandler.mm index f1d6c41e..7c2e9d4d 100644 --- a/Source/KeyHandler.mm +++ b/Source/KeyHandler.mm @@ -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); } }