KeyHandler // Tweak fixNode() with new cursor pushing behavior.

This commit is contained in:
ShikiSuen 2022-07-12 20:59:31 +08:00
parent 4ff9051c17
commit c89636e12a
1 changed files with 1 additions and 8 deletions

View File

@ -197,14 +197,7 @@ class KeyHandler {
/// ///
if mgrPrefs.moveCursorAfterSelectingCandidate, respectCursorPushing { if mgrPrefs.moveCursorAfterSelectingCandidate, respectCursorPushing {
var nextPosition = 0 compositor.jumpCursorBySpan(to: .front)
for theAnchor in walkedAnchors {
if nextPosition >= adjustedCursor { break }
nextPosition += theAnchor.spanLength
}
if nextPosition <= compositorLength {
compositorCursorIndex = nextPosition
}
} }
} }