Skip to content

Commit

Permalink
Fix Gutter Reference Cycle (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoolwinter authored Jul 14, 2024
1 parent 528e3f1 commit 4e014f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CodeEditSourceEditor/Gutter/GutterView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public class GutterView: NSView {
forName: TextSelectionManager.selectionChangedNotification,
object: nil,
queue: .main
) { _ in
self.needsDisplay = true
) { [weak self] _ in
self?.needsDisplay = true
}
}

Expand Down

0 comments on commit 4e014f7

Please sign in to comment.