Skip to content

Commit

Permalink
Fix optional wrapping in supplementalTarget(forAction:sender:)
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed May 21, 2024
1 parent 04942f9 commit 0e0a651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CotEditor/Sources/WindowContentViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ final class WindowContentViewController: NSSplitViewController {

// reel responders from the ideal first responder in the content view
// for when the actual first responder is on the sidebar/inspector
if let textView = self.documentViewController?.focusedTextView,
if let textView = self.documentViewController.focusedTextView,
let responder = sequence(first: textView, next: \.nextResponder).first(where: { $0.responds(to: action) })
{
responder
Expand Down

0 comments on commit 0e0a651

Please sign in to comment.