aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xdisp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index b018735c3c6..07762f56582 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -13134,8 +13134,15 @@ redisplay_window (window, just_this_one_p)
13134 13134
13135 /* If first window line is a continuation line, and window start 13135 /* If first window line is a continuation line, and window start
13136 is inside the modified region, but the first change is before 13136 is inside the modified region, but the first change is before
13137 current window start, we must select a new window start.*/ 13137 current window start, we must select a new window start.
13138
13139 However, if this is the result of a down-mouse event (e.g. by
13140 extending the mouse-drag-overlay), we don't want to select a
13141 new window start, since that would change the position under
13142 the mouse, resulting in an unwanted mouse-movement rather
13143 than a simple mouse-click. */
13138 if (NILP (w->start_at_line_beg) 13144 if (NILP (w->start_at_line_beg)
13145 && NILP (do_mouse_tracking)
13139 && CHARPOS (startp) > BEGV) 13146 && CHARPOS (startp) > BEGV)
13140 { 13147 {
13141 /* Make sure beg_unchanged and end_unchanged are up to date. 13148 /* Make sure beg_unchanged and end_unchanged are up to date.