Skip to content

Commit

Permalink
Fix Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoolwinter committed Oct 14, 2023
1 parent 61a1b9b commit 181e7ff
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Sources/CodeEditTextView/Controller/TextViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,15 @@ public class TextViewController: NSViewController {
internal var storageDelegate: MultiStorageDelegate!
internal var highlighter: Highlighter?

private var fontCharWidth: CGFloat {
(" " as NSString).size(withAttributes: [.font: font]).width
}
private var fontCharWidth: CGFloat { (" " as NSString).size(withAttributes: [.font: font]).width }

/// Filters used when applying edits..
internal var textFilters: [TextFormation.Filter] = []

/// The pixel value to overscroll the bottom of the editor.
/// Calculated as the line height \* ``TextViewController/editorOverscroll``.
/// Does not include ``TextViewController/contentInsets``.
private var bottomContentInset: CGFloat {
(textView?.estimatedLineHeight() ?? 0) * CGFloat(editorOverscroll)
}
private var bottomContentInset: CGFloat { (textView?.estimatedLineHeight() ?? 0) * CGFloat(editorOverscroll) }

private var cancellables = Set<AnyCancellable>()

Expand Down Expand Up @@ -238,7 +234,6 @@ public class TextViewController: NSViewController {
)

self.view = scrollView

setUpHighlighter()

NSLayoutConstraint.activate([
Expand Down Expand Up @@ -340,7 +335,6 @@ public class TextViewController: NSViewController {
}

highlighter?.invalidate()
// highlightSelectionPairs()
}

deinit {
Expand Down

0 comments on commit 181e7ff

Please sign in to comment.