Skip to content

Commit

Permalink
Update macOS Caret Background Color
Browse files Browse the repository at this point in the history
Updates the macOS Caret background color when the color is set using the public variable.

Fixes an issue where the caret color was not being used on macOS if it was changed after initialization.
  • Loading branch information
thecoolwinter committed Aug 8, 2024
1 parent c3bf329 commit c0b7887
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftTerm/Mac/MacCaretView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class CaretView: NSView, CALayerDelegate {

public var caretColor: NSColor = NSColor.selectedControlColor {
didSet {
bgColor = caretColor.cgColor
updateView()
}
}
Expand Down

0 comments on commit c0b7887

Please sign in to comment.