Showing bundle menu with no status bar would cause infinite loop

This is because we were forwarding the message to ‘nil’ rather than the status bar, and ‘nil’ here would be first responder, i.e. ourself.

Fixes textmate/bugs#17
This commit is contained in:
Allan Odgaard
2015-10-16 19:14:36 +07:00
parent b06f20ca72
commit 9a1e05f489

View File

@@ -630,6 +630,9 @@ private:
- (void)showBundlesMenu:(id)sender
{
if(!self.statusBar)
return NSBeep();
[NSApp sendAction:_cmd to:self.statusBar from:self];
}