mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
5c9626301b
commit
40cf4b44ed
@ -9139,9 +9139,8 @@ ins_mousescroll(dir)
|
|||||||
|
|
||||||
tpos = curwin->w_cursor;
|
tpos = curwin->w_cursor;
|
||||||
|
|
||||||
# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
|
# ifdef FEAT_WINDOWS
|
||||||
/* Currently the mouse coordinates are only known in the GUI. */
|
if (mouse_row >= 0 && mouse_col >= 0)
|
||||||
if (gui.in_use && mouse_row >= 0 && mouse_col >= 0)
|
|
||||||
{
|
{
|
||||||
int row, col;
|
int row, col;
|
||||||
|
|
||||||
@ -9191,7 +9190,7 @@ ins_mousescroll(dir)
|
|||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
|
# ifdef FEAT_WINDOWS
|
||||||
curwin->w_redr_status = TRUE;
|
curwin->w_redr_status = TRUE;
|
||||||
|
|
||||||
curwin = old_curwin;
|
curwin = old_curwin;
|
||||||
|
@ -4649,11 +4649,10 @@ nv_screengo(oap, dir, dist)
|
|||||||
nv_mousescroll(cap)
|
nv_mousescroll(cap)
|
||||||
cmdarg_T *cap;
|
cmdarg_T *cap;
|
||||||
{
|
{
|
||||||
# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
|
# ifdef FEAT_WINDOWS
|
||||||
win_T *old_curwin = curwin;
|
win_T *old_curwin = curwin;
|
||||||
|
|
||||||
/* Currently we only get the mouse coordinates in the GUI. */
|
if (mouse_row >= 0 && mouse_col >= 0)
|
||||||
if (gui.in_use && mouse_row >= 0 && mouse_col >= 0)
|
|
||||||
{
|
{
|
||||||
int row, col;
|
int row, col;
|
||||||
|
|
||||||
@ -4698,7 +4697,7 @@ nv_mousescroll(cap)
|
|||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
|
# ifdef FEAT_WINDOWS
|
||||||
curwin->w_redr_status = TRUE;
|
curwin->w_redr_status = TRUE;
|
||||||
|
|
||||||
curwin = old_curwin;
|
curwin = old_curwin;
|
||||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
833,
|
||||||
/**/
|
/**/
|
||||||
832,
|
832,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user