Skip to content

Instantly share code, notes, and snippets.

@h-east
Last active September 3, 2015 01:11
Show Gist options
  • Save h-east/cec839c03da41613c6a0 to your computer and use it in GitHub Desktop.
Save h-east/cec839c03da41613c6a0 to your computer and use it in GitHub Desktop.
regression from Vim patch 7.4.709
diff --git a/src/normal.c b/src/normal.c
--- a/src/normal.c
+++ b/src/normal.c
@@ -2561,7 +2561,8 @@
if (in_tab_line)
{
c1 = TabPageIdxs[mouse_col];
- tabpage_move(c1 <= 0 ? 9999 : c1 - 1);
+ tabpage_move(c1 <= 0 ? 9999 : c1 < tabpage_index(curtab)
+ ? c1 - 1 : c1);
}
return FALSE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment