diff options
| author | Gerd Moellmann | 2001-08-16 08:40:36 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-08-16 08:40:36 +0000 |
| commit | e8660d735f5a043e504c7e83afdae3a2da1dd8ee (patch) | |
| tree | 864dd53ff26c194715263a74ac1bf2818ad57fc9 | |
| parent | 1369261b86e75d10776a68914f811d5faf6c0ac5 (diff) | |
| download | emacs-e8660d735f5a043e504c7e83afdae3a2da1dd8ee.tar.gz emacs-e8660d735f5a043e504c7e83afdae3a2da1dd8ee.zip | |
(move_it_by_lines) <DVPOS < 0>: Start at the beginning
of the screen line, not text line, containing IT's current
position.
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1f0ab6e89e6..ed0ecf7fd26 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-08-16 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning | ||
| 4 | of the screen line, not text line, containing IT's current | ||
| 5 | position. | ||
| 6 | |||
| 1 | 2001-08-15 Gerd Moellmann <gerd@gnu.org> | 7 | 2001-08-15 Gerd Moellmann <gerd@gnu.org> |
| 2 | 8 | ||
| 3 | * window.c (window_scroll_pixel_based): Don't recenter if | 9 | * window.c (window_scroll_pixel_based): Don't recenter if |
diff --git a/src/xdisp.c b/src/xdisp.c index cb54fc178f5..f5c38c52d9b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5477,11 +5477,9 @@ move_it_by_lines (it, dvpos, need_y_p) | |||
| 5477 | struct it it2; | 5477 | struct it it2; |
| 5478 | int start_charpos, i; | 5478 | int start_charpos, i; |
| 5479 | 5479 | ||
| 5480 | /* If we start in the middle of a line, move to the beginning | 5480 | /* Start at the beginning of the screen line containing IT's |
| 5481 | of that line first. */ | 5481 | position. */ |
| 5482 | if (IT_CHARPOS (*it) > BEGV | 5482 | move_it_vertically_backward (it, 0); |
| 5483 | && FETCH_BYTE (IT_BYTEPOS (*it) - 1) != '\n') | ||
| 5484 | back_to_previous_visible_line_start (it); | ||
| 5485 | 5483 | ||
| 5486 | /* Go back -DVPOS visible lines and reseat the iterator there. */ | 5484 | /* Go back -DVPOS visible lines and reseat the iterator there. */ |
| 5487 | start_charpos = IT_CHARPOS (*it); | 5485 | start_charpos = IT_CHARPOS (*it); |