summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2013-02-26 13:30:32 +0100
committerBram Moolenaar <bram@vim.org>2013-02-26 13:30:32 +0100
commit8f197b0eabc610037e11c57c4201ebd9de2b5b31 (patch)
tree4b771c443e5c46e6a0155824d09fbe162f34d4b2
parent53893720ea6c8cc3e43bab2b438335f0eff47f94 (diff)
downloadvim-8f197b0eabc610037e11c57c4201ebd9de2b5b31.tar.gz
updated for version 7.3.833v7.3.833v7-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)
-rw-r--r--src/edit.c7
-rw-r--r--src/normal.c7
-rw-r--r--src/version.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/edit.c b/src/edit.c
index 3a046659..74bbd9a1 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -9139,9 +9139,8 @@ ins_mousescroll(dir)
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;
@@ -9191,7 +9190,7 @@ ins_mousescroll(dir)
# endif
}
-# if defined(FEAT_GUI) && defined(FEAT_WINDOWS)
+# ifdef FEAT_WINDOWS
curwin->w_redr_status = TRUE;
curwin = old_curwin;
diff --git a/src/normal.c b/src/normal.c
index c79b67b1..f9050db6 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -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;
diff --git a/src/version.c b/src/version.c
index 2625b89a..3ab85483 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 833,
+/**/
832,
/**/
831,