From bfa272ac65e26c7fc68475ab2ec870707833ec9e Mon Sep 17 00:00:00 2001 From: zonble Date: Fri, 4 Feb 2022 00:09:44 +0800 Subject: [PATCH] Minor fix on the function to move cursor after selection. --- Source/KeyHandler.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }