diff options
| author | Kim F. Storm | 2005-02-21 09:01:04 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-02-21 09:01:04 +0000 |
| commit | d782c34829ed3aca9e4debb63b30568178407486 (patch) | |
| tree | 79a672603bfeba32c2dd34eac19ecf1e17a93bf1 /src | |
| parent | 0dd5a842d900d7f134252f1e88295f40c84de6ba (diff) | |
| download | emacs-d782c34829ed3aca9e4debb63b30568178407486.tar.gz emacs-d782c34829ed3aca9e4debb63b30568178407486.zip | |
(move_it_vertically_backward): Eliminate two xasserts.
I think those asserts are bogus if buffer contains invisible text
or images.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 85044a3713d..eb1a7d75fca 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -6318,7 +6318,11 @@ move_it_vertically_backward (it, dy) | |||
| 6318 | value of nlines is > 0 if continuation lines were involved. */ | 6318 | value of nlines is > 0 if continuation lines were involved. */ |
| 6319 | if (nlines > 0) | 6319 | if (nlines > 0) |
| 6320 | move_it_by_lines (it, nlines, 1); | 6320 | move_it_by_lines (it, nlines, 1); |
| 6321 | #if 0 | ||
| 6322 | /* I think this assert is bogus if buffer contains | ||
| 6323 | invisible text or images. KFS. */ | ||
| 6321 | xassert (IT_CHARPOS (*it) <= start_pos); | 6324 | xassert (IT_CHARPOS (*it) <= start_pos); |
| 6325 | #endif | ||
| 6322 | } | 6326 | } |
| 6323 | else | 6327 | else |
| 6324 | { | 6328 | { |
| @@ -6367,7 +6371,11 @@ move_it_vertically_backward (it, dy) | |||
| 6367 | while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV); | 6371 | while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV); |
| 6368 | } | 6372 | } |
| 6369 | 6373 | ||
| 6374 | #if 0 | ||
| 6375 | /* I think this assert is bogus if buffer contains | ||
| 6376 | invisible text or images. KFS. */ | ||
| 6370 | xassert (IT_CHARPOS (*it) >= BEGV); | 6377 | xassert (IT_CHARPOS (*it) >= BEGV); |
| 6378 | #endif | ||
| 6371 | } | 6379 | } |
| 6372 | } | 6380 | } |
| 6373 | } | 6381 | } |