diff --git a/Classes/SMLOpenSavePerformer.m b/Classes/SMLOpenSavePerformer.m index acfc108..6f392e0 100644 --- a/Classes/SMLOpenSavePerformer.m +++ b/Classes/SMLOpenSavePerformer.m @@ -328,6 +328,11 @@ - (void)performOpenWithPath:(NSString *)path contents:(NSString *)textString enc [SMLCurrentProject selectionDidChange]; [self performSelector:@selector(updateLineNumbers) withObject:nil afterDelay:0.0]; + + // Bring the window in front if Smultron is not on the current displayed space. + if (![SMLCurrentWindow isOnActiveSpace]) { + [SMLCurrentWindow orderFront:self]; + } }