File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Sources/CodeEditTextView/Utils Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ public class CEUndoManager {
4141 }
4242
4343 public override func beginUndoGrouping( ) {
44- parent? . beginGrouping ( )
44+ parent? . beginUndoGrouping ( )
4545 }
4646
4747 public override func endUndoGrouping( ) {
48- parent? . endGrouping ( )
48+ parent? . endUndoGrouping ( )
4949 }
5050
5151 public override func registerUndo( withTarget target: Any , selector: Selector , object anObject: Any ? ) {
@@ -172,18 +172,18 @@ public class CEUndoManager {
172172 // MARK: - Grouping
173173
174174 /// Groups all incoming mutations.
175- public func beginGrouping ( ) {
175+ public func beginUndoGrouping ( ) {
176176 guard !isGrouping else {
177- assertionFailure ( " UndoManager already in a group. Call `endGrouping ` before this can be called. " )
177+ assertionFailure ( " UndoManager already in a group. Call `beginUndoGrouping ` before this can be called. " )
178178 return
179179 }
180180 isGrouping = true
181181 }
182182
183183 /// Stops grouping all incoming mutations.
184- public func endGrouping ( ) {
184+ public func endUndoGrouping ( ) {
185185 guard isGrouping else {
186- assertionFailure ( " UndoManager not in a group. Call `beginGrouping ` before this can be called. " )
186+ assertionFailure ( " UndoManager not in a group. Call `endUndoGrouping ` before this can be called. " )
187187 return
188188 }
189189 isGrouping = false
You can’t perform that action at this time.
0 commit comments