File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Sources/CodeEditTextView/TextLineStorage Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,10 @@ public final class TextLineStorage<Data: Identifiable> {
194194 /// - delta: The change in length of the document. Negative for deletes, positive for insertions.
195195 /// - deltaHeight: The change in height of the document.
196196 public func update( atOffset offset: Int , delta: Int , deltaHeight: CGFloat ) {
197- assert ( offset >= 0 && offset <= self . length, " Invalid index, expected between 0 and \( self . length) . Got \( offset) " )
197+ assert (
198+ offset >= 0 && offset <= self . length,
199+ " Invalid index, expected between 0 and \( self . length) . Got \( offset) "
200+ )
198201 assert ( delta != 0 || deltaHeight != 0 , " Delta must be non-0 " )
199202 let position : NodePosition ?
200203 if offset == self . length { // Updates at the end of the document are valid
You can’t perform that action at this time.
0 commit comments