Skip to content

Commit 1e29bad

Browse files
committed
Cleanup.
1 parent c048605 commit 1e29bad

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

Sources/DiffableTextKit/Models/Layout.swift

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@
4545
// MARK: Transformations
4646
//=------------------------------------------------------------------------=
4747

48+
/// Use this method to resolve a deferred selection.
49+
@inlinable mutating func autocorrect() {
50+
self.merge(selection: self.selection)
51+
}
52+
53+
//=------------------------------------------------------------------------=
54+
// MARK: Transformations
55+
//=------------------------------------------------------------------------=
56+
4857
/// Use this method on changes to text.
4958
@inlinable mutating func merge(snapshot: Snapshot, preference: Selection<Index>?) {
5059
//=--------------------------------------=
@@ -61,19 +70,6 @@
6170
self.merge(selection: selection)
6271
}
6372

64-
//=------------------------------------------------------------------------=
65-
// MARK: Transformations
66-
//=------------------------------------------------------------------------=
67-
68-
/// Use this method to resolve selection.
69-
@inlinable mutating func autocorrect() {
70-
self.merge(selection: self.selection)
71-
}
72-
73-
//=------------------------------------------------------------------------=
74-
// MARK: Transformations
75-
//=------------------------------------------------------------------------=
76-
7773
/// Use this method on changes to selection.
7874
@inlinable mutating func merge(selection: Selection<Index>, resolve: Resolve = []) {
7975
//=--------------------------------------=

Sources/DiffableTextKit/Models/Resolve.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@
2626

2727
//=--------------------------------------------------------------------=
2828

29-
@usableFromInline init(rawValue: UInt8) { self.rawValue = rawValue }
29+
@inlinable init(rawValue: UInt8) { self.rawValue = rawValue }
3030
}

0 commit comments

Comments
 (0)