File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2013,6 +2013,14 @@ - (void)handleInputEvent:(int)msgid data:(NSData *)data
2013
2013
// based.
2014
2014
int idx = *((int *)bytes);
2015
2015
2016
+ // Also, this index doesn't take itself into account, so if the move is
2017
+ // to a later tab, need to add one to it since Vim's tabpage_move *does*
2018
+ // count the current tab.
2019
+ int curtab_index = tabpage_index (curtab);
2020
+ if (idx >= curtab_index) {
2021
+ idx += 1 ;
2022
+ }
2023
+
2016
2024
tabpage_move (idx);
2017
2025
} else if (SetTextDimensionsMsgID == msgid || LiveResizeMsgID == msgid
2018
2026
|| SetTextDimensionsNoResizeWindowMsgID == msgid
Original file line number Diff line number Diff line change @@ -338,7 +338,10 @@ - (NSImage*)dragImageForRect:(NSRect)cellFrame
338
338
if (([self state ] == NSOnState ) && ([[_controlView styleName ] isEqualToString: @" Metal" ]))
339
339
cellFrame.size .width += 1.0 ;
340
340
[_controlView lockFocus ];
341
- NSBitmapImageRep *rep = [[[NSBitmapImageRep alloc ] initWithFocusedViewRect: cellFrame] autorelease ];
341
+
342
+ NSBitmapImageRep *rep = [[self controlView ] bitmapImageRepForCachingDisplayInRect: cellFrame];
343
+ [[self controlView ] cacheDisplayInRect: cellFrame toBitmapImageRep: rep];
344
+
342
345
[_controlView unlockFocus ];
343
346
NSImage *image = [[[NSImage alloc ] initWithSize: [rep size ]] autorelease ];
344
347
[image addRepresentation: rep];
You can’t perform that action at this time.
0 commit comments