mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
vim-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)
4a4b821085
This commit is contained in:
parent
84281bf675
commit
162d4bb3c6
@ -2347,9 +2347,12 @@ do_mouse (
|
|||||||
if (mouse_row == 0 && firstwin->w_winrow > 0) {
|
if (mouse_row == 0 && firstwin->w_winrow > 0) {
|
||||||
if (is_drag) {
|
if (is_drag) {
|
||||||
if (in_tab_line) {
|
if (in_tab_line) {
|
||||||
tabpage_move(tab_page_click_defs[mouse_col].type == kStlClickTabClose
|
if (tab_page_click_defs[mouse_col].type == kStlClickTabClose) {
|
||||||
? 9999
|
tabpage_move(9999);
|
||||||
: tab_page_click_defs[mouse_col].tabnr - 1);
|
} else {
|
||||||
|
int tabnr = tab_page_click_defs[mouse_col].tabnr;
|
||||||
|
tabpage_move(tabnr < tabpage_index(curtab) ? tabnr - 1 : tabnr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -431,7 +431,7 @@ static int included_patches[] = {
|
|||||||
// 860,
|
// 860,
|
||||||
// 859,
|
// 859,
|
||||||
858,
|
858,
|
||||||
// 857,
|
857,
|
||||||
// 856,
|
// 856,
|
||||||
// 855 NA
|
// 855 NA
|
||||||
// 854 NA
|
// 854 NA
|
||||||
|
Loading…
Reference in New Issue
Block a user