We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 655983b commit a4ea216Copy full SHA for a4ea216
1 file changed
src/MacVim/MMFindReplaceController.m
@@ -33,9 +33,11 @@ - (void)showWithText:(NSString *)text flags:(int)flags
33
34
// Set collection behavior to ensure the dialog appears in the current
35
// space rather than jumping to another space.
36
- NSWindowCollectionBehavior wcb = window.collectionBehavior;
37
- wcb |= NSWindowCollectionBehaviorMoveToActiveSpace;
38
- [window setCollectionBehavior:wcb];
+ if (AVAILABLE_MAC_OS(10, 7)) {
+ NSWindowCollectionBehavior wcb = window.collectionBehavior;
+ wcb |= NSWindowCollectionBehaviorMoveToActiveSpace;
39
+ [window setCollectionBehavior:wcb];
40
+ }
41
42
if (text && [text length] > 0)
43
[findBox setStringValue:text];
0 commit comments