aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index ff01b2c902c..17c8f52c286 100644
--- a/src/window.c
+++ b/src/window.c
@@ -682,7 +682,10 @@ coordinates_in_window (w, x, y)
682 682
683 /* Outside any interesting column? */ 683 /* Outside any interesting column? */
684 if (*x < left_x || *x > right_x) 684 if (*x < left_x || *x > right_x)
685 return ON_SCROLL_BAR; 685 {
686 *y -= top_y;
687 return ON_SCROLL_BAR;
688 }
686 689
687 lmargin_width = window_box_width (w, LEFT_MARGIN_AREA); 690 lmargin_width = window_box_width (w, LEFT_MARGIN_AREA);
688 rmargin_width = window_box_width (w, RIGHT_MARGIN_AREA); 691 rmargin_width = window_box_width (w, RIGHT_MARGIN_AREA);