From 6c0afe12c98f63cc694e9fae5a05e5fd18afa636 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 26 May 2004 22:11:29 +0000 Subject: [PATCH] (back_to_previous_visible_line_start): Skip backwards over display properties, e.g. images, that replace buffer text. --- src/xdisp.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) visible_p = 0; } + if (visible_p) + { + struct it it2 = *it; + + if (handle_display_prop (&it2) == HANDLED_RETURN) + visible_p = 0; + } + /* Back one more newline if the current one is invisible. */ if (!visible_p) back_to_previous_line_start (it); -- 2.39.2