File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,20 @@ + (void)initialize
182
182
CFSTR (" " ),
183
183
kCFPreferencesCurrentApplication );
184
184
185
+ if ([NSWindow respondsToSelector: @selector (setAllowsAutomaticWindowTabbing: )]) {
186
+ // Disable automatic tabbing on 10.12+. MacVim already has its own
187
+ // tabbing interface, so we don't want multiple hierarchy of tabs mixing
188
+ // native and Vim tabs. MacVim also doesn't work well with native tabs
189
+ // right now since it doesn't respond well to the size change, and it
190
+ // doesn't show the native menu items (e.g. move tab to new window) in
191
+ // all the tabs.
192
+ //
193
+ // Note: MacVim cannot use macOS native tabs for Vim tabs because Vim
194
+ // assumes only one tab can be shown at a time, and it would be hard to
195
+ // handle native tab's "move tab to a new window" functionality.
196
+ [NSWindow setAllowsAutomaticWindowTabbing: NO ];
197
+ }
198
+
185
199
int tabMinWidthKey;
186
200
int tabMaxWidthKey;
187
201
int tabOptimumWidthKey;
You can’t perform that action at this time.
0 commit comments