mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.3.833
Problem: In the terminal the scroll wheel always scrolls the active window. Solution: Scroll the window under the mouse pointer, like in the GUI. (Bradie Rao)
This commit is contained in:
@@ -4649,11 +4649,10 @@ nv_screengo(oap, dir, dist)
|
||||
nv_mousescroll(cap)
|
||||
cmdarg_T *cap;
|
||||
{
|
||||
# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
|
||||
# ifdef FEAT_WINDOWS
|
||||
win_T *old_curwin = curwin;
|
||||
|
||||
/* Currently we only get the mouse coordinates in the GUI. */
|
||||
if (gui.in_use && mouse_row >= 0 && mouse_col >= 0)
|
||||
if (mouse_row >= 0 && mouse_col >= 0)
|
||||
{
|
||||
int row, col;
|
||||
|
||||
@@ -4698,7 +4697,7 @@ nv_mousescroll(cap)
|
||||
}
|
||||
# endif
|
||||
|
||||
# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
|
||||
# ifdef FEAT_WINDOWS
|
||||
curwin->w_redr_status = TRUE;
|
||||
|
||||
curwin = old_curwin;
|
||||
|
Reference in New Issue
Block a user