summaryrefslogtreecommitdiffstats
path: root/src/edit.c
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
commit40cf4b44ed6c7fae7d35b0652911cf7c97d9f2a2 (patch)
treed22bd5caf2eb77b828f0625086ed93900e59aadd /src/edit.c
parent5c9626301b93621869bbc0662cf71ccb2f853c51 (diff)
updated for version 7.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)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/edit.c b/src/edit.c
index 3a0466595a..74bbd9a109 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;