From: Eli Zaretskii Date: Thu, 14 Sep 2023 09:52:14 +0000 (+0300) Subject: Fix 'window-text-pixel-size' when there are several images at START X-Git-Tag: emacs-29.1.90~97 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=809305e6d8fb2489b86a1fbf850f88d17a7864f0;p=emacs.git 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) --- 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