diff options
| author | Eli Zaretskii | 2022-07-09 13:26:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-07-09 13:26:05 +0300 |
| commit | 9de00e5fda2e04316357bd8cf0d8094c63ff171b (patch) | |
| tree | 0701c2cb48c1f7eb979035e1fd263e06fe82590a /src | |
| parent | a740608453525c7f7645df0740ee8267b43a779b (diff) | |
| download | emacs-9de00e5fda2e04316357bd8cf0d8094c63ff171b.tar.gz emacs-9de00e5fda2e04316357bd8cf0d8094c63ff171b.zip | |
Avoid assertion violations in 'back_to_previous_visible_line_start'
* src/xdisp.c (back_to_previous_visible_line_start): Avoid
assertion violations when narrowed_begv is in effect.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 84203f0ed0c..ac76917eb3f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -7226,7 +7226,8 @@ back_to_previous_visible_line_start (struct it *it) | |||
| 7226 | it->continuation_lines_width = 0; | 7226 | it->continuation_lines_width = 0; |
| 7227 | 7227 | ||
| 7228 | eassert (IT_CHARPOS (*it) >= BEGV); | 7228 | eassert (IT_CHARPOS (*it) >= BEGV); |
| 7229 | eassert (IT_CHARPOS (*it) == BEGV | 7229 | eassert (it->narrowed_begv > BEGV |
| 7230 | || IT_CHARPOS (*it) == BEGV | ||
| 7230 | || FETCH_BYTE (IT_BYTEPOS (*it) - 1) == '\n'); | 7231 | || FETCH_BYTE (IT_BYTEPOS (*it) - 1) == '\n'); |
| 7231 | CHECK_IT (it); | 7232 | CHECK_IT (it); |
| 7232 | } | 7233 | } |