Skip to content

Commit

Permalink
Fix hole observation
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Aug 13, 2023
1 parent 3ebe6ce commit 21cb191
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CotEditor/Sources/HoleContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ final class HoleContentView: NSView {
.map { $0.object as! NSView }
.filter { $0 is NSStackView }
.filter { $0.isDescendant(of: self) }
.eraseToVoid()
.merge(with: Just(Void()))
.sink { [unowned self] _ in
self.holes = self.descendants(type: NSStackView.self)
.map { $0.convert($0.frame, to: self) }
Expand Down

0 comments on commit 21cb191

Please sign in to comment.