diff options
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c index ae7b83ad2..69b0dcecb 100644 --- a/src/normal.c +++ b/src/normal.c @@ -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; } |