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:
@@ -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;
|
||||
}
|
||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
857,
|
||||
/**/
|
||||
856,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user