KeyHandler // Misc fix in FixNode().

This commit is contained in:
ShikiSuen 2022-06-29 13:20:23 +08:00
parent 9650a0c35e
commit fba6ff5d33
1 changed files with 2 additions and 2 deletions

View File

@ -205,9 +205,9 @@ class KeyHandler {
///
if mgrPrefs.moveCursorAfterSelectingCandidate, respectCursorPushing {
var nextPosition = 0
for node in walkedAnchors {
for theAnchor in walkedAnchors {
if nextPosition >= cursorIndex { break }
nextPosition += node.spanningLength
nextPosition += theAnchor.spanningLength
}
if nextPosition <= compositorLength {
compositorCursorIndex = nextPosition