diff options
| author | Gerd Moellmann | 2001-02-22 13:56:35 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-02-22 13:56:35 +0000 |
| commit | 516957462d6ef56f1d2856b3ef11c6ac678cac16 (patch) | |
| tree | 658d0da598b21ca2774c57a5c75814689172ebd4 /src | |
| parent | 89dc96ee75ffc37eb30efad73aac239f6467e26a (diff) | |
| download | emacs-516957462d6ef56f1d2856b3ef11c6ac678cac16.tar.gz emacs-516957462d6ef56f1d2856b3ef11c6ac678cac16.zip | |
(forward_to_next_line_start): When taking the shortcut
at the start of the function, check that the \n in it->c is
from the iterator's current position.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5a8a8d06a0f..295595ea95b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2001-02-22 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-02-22 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xdisp.c (forward_to_next_line_start): When taking the shortcut | ||
| 4 | at the start of the function, check that the \n in it->c is | ||
| 5 | from the iterator's current position. | ||
| 6 | |||
| 3 | * xdisp.c (handle_single_display_prop): Add parameter | 7 | * xdisp.c (handle_single_display_prop): Add parameter |
| 4 | DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display | 8 | DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display |
| 5 | properties which replace the display of text with something else. | 9 | properties which replace the display of text with something else. |
diff --git a/src/xdisp.c b/src/xdisp.c index 4782b3b0e07..3da744c9c73 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -3517,7 +3517,9 @@ forward_to_next_line_start (it, skipped_p) | |||
| 3517 | 3517 | ||
| 3518 | /* If already on a newline, just consume it to avoid unintended | 3518 | /* If already on a newline, just consume it to avoid unintended |
| 3519 | skipping over invisible text below. */ | 3519 | skipping over invisible text below. */ |
| 3520 | if (it->what == IT_CHARACTER && it->c == '\n') | 3520 | if (it->what == IT_CHARACTER |
| 3521 | && it->c == '\n' | ||
| 3522 | && CHARPOS (it->position) == IT_CHARPOS (*it)) | ||
| 3521 | { | 3523 | { |
| 3522 | set_iterator_to_next (it, 0); | 3524 | set_iterator_to_next (it, 0); |
| 3523 | it->c = 0; | 3525 | it->c = 0; |