diff options
| author | Eli Zaretskii | 2011-10-30 20:07:48 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-10-30 20:07:48 +0200 |
| commit | c2ff3c02a4dc328157427a4c045494edd789d204 (patch) | |
| tree | 78f8232c93115439146f8d8e438fda2a7e3989d3 /src | |
| parent | 6e56383b5703464b71707387408c141d0e9f2e3c (diff) | |
| download | emacs-c2ff3c02a4dc328157427a4c045494edd789d204.tar.gz emacs-c2ff3c02a4dc328157427a4c045494edd789d204.zip | |
Fix random crashes while scrolling backwards.
src/xdisp.c (try_cursor_movement): Make sure ROW isn't decremented
past the beginning of the current glyph matrix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9f8fa94d481..0bb16514b58 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-10-30 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (try_cursor_movement): Make sure ROW isn't decremented | ||
| 4 | past the beginning of the current glyph matrix. | ||
| 5 | |||
| 1 | 2011-10-30 Adam Sjøgren <asjo@koldfront.dk> (tiny change) | 6 | 2011-10-30 Adam Sjøgren <asjo@koldfront.dk> (tiny change) |
| 2 | 7 | ||
| 3 | * xterm.c: Include X11/Xproto.h if HAVE_GTK3. | 8 | * xterm.c: Include X11/Xproto.h if HAVE_GTK3. |
diff --git a/src/xdisp.c b/src/xdisp.c index 22f7c2bbd26..33c5fc0d230 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -14829,8 +14829,6 @@ try_cursor_movement (Lisp_Object window, struct text_pos startp, int *scroll_ste | |||
| 14829 | bidi-reordered rows. */ | 14829 | bidi-reordered rows. */ |
| 14830 | while (MATRIX_ROW_CONTINUATION_LINE_P (row)) | 14830 | while (MATRIX_ROW_CONTINUATION_LINE_P (row)) |
| 14831 | { | 14831 | { |
| 14832 | xassert (row->enabled_p); | ||
| 14833 | --row; | ||
| 14834 | /* If we hit the beginning of the displayed portion | 14832 | /* If we hit the beginning of the displayed portion |
| 14835 | without finding the first row of a continued | 14833 | without finding the first row of a continued |
| 14836 | line, give up. */ | 14834 | line, give up. */ |
| @@ -14839,7 +14837,8 @@ try_cursor_movement (Lisp_Object window, struct text_pos startp, int *scroll_ste | |||
| 14839 | rc = CURSOR_MOVEMENT_MUST_SCROLL; | 14837 | rc = CURSOR_MOVEMENT_MUST_SCROLL; |
| 14840 | break; | 14838 | break; |
| 14841 | } | 14839 | } |
| 14842 | 14840 | xassert (row->enabled_p); | |
| 14841 | --row; | ||
| 14843 | } | 14842 | } |
| 14844 | } | 14843 | } |
| 14845 | if (must_scroll) | 14844 | if (must_scroll) |