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)
tpos = curwin->w_cursor;
-# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
- /* Currently the mouse coordinates are only known in the GUI. */
- if (gui.in_use && mouse_row >= 0 && mouse_col >= 0)
+# ifdef FEAT_WINDOWS
+ if (mouse_row >= 0 && mouse_col >= 0)
{
int row, col;
# endif
}
-# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
+# ifdef FEAT_WINDOWS
curwin->w_redr_status = TRUE;
curwin = old_curwin;
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;
}
# endif
-# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
+# ifdef FEAT_WINDOWS
curwin->w_redr_status = TRUE;
curwin = old_curwin;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 833,
/**/
832,
/**/