diff options
| author | Kim F. Storm | 2007-03-10 01:07:05 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2007-03-10 01:07:05 +0000 |
| commit | b5b772e79d93c0def4dadee9f93cd170d9e69a4f (patch) | |
| tree | 1f2d23be082f7109e6d426ca5dfff337ab8f4c7e | |
| parent | d4e5bf0f80adfbe9bc5896b289474a235e4360a2 (diff) | |
| download | emacs-b5b772e79d93c0def4dadee9f93cd170d9e69a4f.tar.gz emacs-b5b772e79d93c0def4dadee9f93cd170d9e69a4f.zip | |
(redisplay_window): Don't automatically select a new window
start for a contination line during mouse-click.
| -rw-r--r-- | src/xdisp.c | 9 |
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. |