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

ignore negative session sizes in tmux instead of asserting

parent c0ad0233
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -393,6 +393,11 @@ static NSString *kListWindowsFormat = @"\"#{session_name}\t#{window_id}\t"
// After the last session closes a size of 0 is reported.
return;
}
if (minSize.width < 0 || minSize.height < 0) {
// This shouldn't happen, but it does, and it'd be nice not to crash.
NSLog(@"Minimum size of tmux layout was less than 0!");
return;
}
if (NSEqualSizes(minSize, lastSize_)) {
return;
}
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