Skip to content

Commit

Permalink
Only raise the selection changed event if the active state did change
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeicaza committed Jul 8, 2022
1 parent c55336c commit 1cb0245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftTerm/SelectionService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class SelectionService: CustomDebugStringConvertible {
set(newValue) {
if _active != newValue {
_active = newValue
terminal.tdel?.selectionChanged (source: terminal)
}
terminal.tdel?.selectionChanged (source: terminal)
if active == false {
pivot = nil
}
Expand Down

0 comments on commit 1cb0245

Please sign in to comment.