Skip to content

Commit

Permalink
Tidy up code slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzsh committed May 3, 2024
1 parent c8eca41 commit 0369880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CodeEditTextView/TextView/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public class TextView: NSView, NSTextContent {
}

override public var visibleRect: NSRect {
if let scrollView = scrollView {
if let scrollView {
var rect = scrollView.documentVisibleRect
rect.origin.y += scrollView.contentInsets.top
return rect
Expand Down

0 comments on commit 0369880

Please sign in to comment.