]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'window-text-pixel-size' when there are several images at START
authorEli Zaretskii <eliz@gnu.org>
Thu, 14 Sep 2023 09:52:14 +0000 (12:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 14 Sep 2023 09:52:14 +0000 (12:52 +0300)
* src/xdisp.c (window_text_pixel_size): Remove unnecessary call to
'move_it_to'.  (Bug#65899)  (Bug#54862)

src/xdisp.c

index 11417070804b4f2ba58657341cc2b21f9756d72f..b39b13215f3349068e37271a9b2757f12afb8f3f 100644 (file)
@@ -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