File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
Sources/DiffableTextKit/Models Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 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 //=--------------------------------------=
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 //=--------------------------------------=
Original file line number Diff line number Diff line change 2626
2727 //=--------------------------------------------------------------------=
2828
29- @usableFromInline init ( rawValue: UInt8 ) { self . rawValue = rawValue }
29+ @inlinable init ( rawValue: UInt8 ) { self . rawValue = rawValue }
3030}
You can’t perform that action at this time.
0 commit comments