Skip to content
Snippets Groups Projects
Commit 2f917ccf authored by George Nachman's avatar George Nachman
Browse files

Fix crash when you cmd-click in a window when there's no front text view (that...

Fix crash when you cmd-click in a window when there's no front text view (that happens after closing a window and another window doesn't become key because another app is key).
parent f7fdde5c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2274,7 +2274,9 @@ static BOOL RectsEqual(NSRect* a, NSRect* b) {
 
dragOk_ = YES;
PTYTextView* frontTextView = [[iTermController sharedInstance] frontTextView];
if (!cmdPressed && [[frontTextView->dataSource session] tab] != [[dataSource session] tab]) {
if (!cmdPressed &&
frontTextView &&
[[frontTextView->dataSource session] tab] != [[dataSource session] tab]) {
// Mouse clicks in inactive tab are always handled by superclass because we don't want clicks
// to select a split pane to be xterm-mouse-reported. We do allow cmd-clicks to go through
// incase you're clicking on a URL.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment