diff --git a/Lexical/Core/Selection/SelectionUtils.swift b/Lexical/Core/Selection/SelectionUtils.swift index 6f944f6..2de2d11 100644 --- a/Lexical/Core/Selection/SelectionUtils.swift +++ b/Lexical/Core/Selection/SelectionUtils.swift @@ -575,8 +575,7 @@ private func resolveSelectionPointOnBoundary( if let prevSibling = prevSibling as? ElementNode, !isCollapsed, - prevSibling.isInline() - { + prevSibling.isInline() { point.key = prevSibling.key point.offset = prevSibling.getChildrenSize() point.type = .element @@ -644,8 +643,7 @@ internal func normalizeSelectionPointsForBoundaries( if editor.isComposing(), editor.compositionKey != anchor.key, - let lastSelection = lastSelection as? RangeSelection - { + let lastSelection = lastSelection as? RangeSelection { let lastAnchor = lastSelection.anchor let lastFocus = lastSelection.focus anchor.key = lastAnchor.key diff --git a/Lexical/Core/Utils.swift b/Lexical/Core/Utils.swift index e8ca7e1..a696393 100644 --- a/Lexical/Core/Utils.swift +++ b/Lexical/Core/Utils.swift @@ -567,8 +567,7 @@ public func getAdjacentNode( let focusNode = try focus.getNode() if (isBackward && focusOffset == 0) || - (!isBackward && focusOffset == focusNode.getTextContentSize()) - { + (!isBackward && focusOffset == focusNode.getTextContentSize()) { let possibleNode = isBackward ? focusNode.getPreviousSibling() : focusNode.getNextSibling()