diff options
| author | Kim F. Storm | 2004-05-26 22:11:29 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-05-26 22:11:29 +0000 |
| commit | 6c0afe12c98f63cc694e9fae5a05e5fd18afa636 (patch) | |
| tree | ae21f4d2187fc2dafab3c39f20e8c15ab5111461 | |
| parent | 1e8dae36db1f7a3c0226802648fd3a115ae636cb (diff) | |
| download | emacs-6c0afe12c98f63cc694e9fae5a05e5fd18afa636.tar.gz emacs-6c0afe12c98f63cc694e9fae5a05e5fd18afa636.zip | |
(back_to_previous_visible_line_start): Skip backwards
over display properties, e.g. images, that replace buffer text.
| -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 0f7e9ac9f96..b5b7e2c3020 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -4563,6 +4563,14 @@ back_to_previous_visible_line_start (it) | |||
| 4563 | visible_p = 0; | 4563 | visible_p = 0; |
| 4564 | } | 4564 | } |
| 4565 | 4565 | ||
| 4566 | if (visible_p) | ||
| 4567 | { | ||
| 4568 | struct it it2 = *it; | ||
| 4569 | |||
| 4570 | if (handle_display_prop (&it2) == HANDLED_RETURN) | ||
| 4571 | visible_p = 0; | ||
| 4572 | } | ||
| 4573 | |||
| 4566 | /* Back one more newline if the current one is invisible. */ | 4574 | /* Back one more newline if the current one is invisible. */ |
| 4567 | if (!visible_p) | 4575 | if (!visible_p) |
| 4568 | back_to_previous_line_start (it); | 4576 | back_to_previous_line_start (it); |