From 809305e6d8fb2489b86a1fbf850f88d17a7864f0 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 14 Sep 2023 12:52:14 +0300 Subject: [PATCH] Fix 'window-text-pixel-size' when there are several images at START * src/xdisp.c (window_text_pixel_size): Remove unnecessary call to 'move_it_to'. (Bug#65899) (Bug#54862) --- src/xdisp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 11417070804..b39b13215f3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -11420,7 +11420,6 @@ window_text_pixel_size (Lisp_Object window, Lisp_Object from, Lisp_Object to, else move_it_in_display_line (&it, start, it1_x + 1, MOVE_TO_POS | MOVE_TO_X); - move_it_to (&it, start - 1, -1, -1, -1, MOVE_TO_POS); start_x = it.current_x; /* If we didn't change our buffer position, the pixel width of what's here was not yet accounted for; do it -- 2.39.2