Last active
September 3, 2015 01:11
-
-
Save h-east/cec839c03da41613c6a0 to your computer and use it in GitHub Desktop.
regression from Vim patch 7.4.709
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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