0
0
mirror of https://github.com/vim/vim.git synced 2025-10-10 06:24:10 -04:00

patch 7.4.857

Problem:    Dragging the current tab with the mouse doesn't work properly.
Solution:   Take the current tabpage index into account. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2015-09-08 17:50:41 +02:00
parent a09a2c5857
commit 4a4b821085
2 changed files with 4 additions and 1 deletions

View File

@@ -2561,7 +2561,8 @@ do_mouse(oap, c, dir, count, fixindent)
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;
}

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
857,
/**/
856,
/**/