# HG changeset patch # User Kim F. Storm # Date 1173488825 0 # Node ID 5363bbb352ba7c25d34088e2818c7f593760faa7 # Parent 2233da85ba88dd3d86660da7a0ef3ea7c3e81e0b (redisplay_window): Don't automatically select a new window start for a contination line during mouse-click. diff -r 2233da85ba88 -r 5363bbb352ba src/xdisp.c --- a/src/xdisp.c Fri Mar 09 23:11:15 2007 +0000 +++ b/src/xdisp.c Sat Mar 10 01:07:05 2007 +0000 @@ -13134,8 +13134,15 @@ /* If first window line is a continuation line, and window start is inside the modified region, but the first change is before - current window start, we must select a new window start.*/ + current window start, we must select a new window start. + + However, if this is the result of a down-mouse event (e.g. by + extending the mouse-drag-overlay), we don't want to select a + new window start, since that would change the position under + the mouse, resulting in an unwanted mouse-movement rather + than a simple mouse-click. */ if (NILP (w->start_at_line_beg) + && NILP (do_mouse_tracking) && CHARPOS (startp) > BEGV) { /* Make sure beg_unchanged and end_unchanged are up to date.