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 8bc4201 commit faf5173Copy full SHA for faf5173
src/MacVim/MMBackend.m
@@ -2013,6 +2013,14 @@ - (void)handleInputEvent:(int)msgid data:(NSData *)data
2013
// based.
2014
int idx = *((int*)bytes);
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
+
2024
tabpage_move(idx);
2025
} else if (SetTextDimensionsMsgID == msgid || LiveResizeMsgID == msgid
2026
|| SetTextDimensionsNoResizeWindowMsgID == msgid
0 commit comments