Buggy when position isn't recomputed

This commit is contained in:
larstvei 2024-09-14 23:37:52 +02:00
parent bfc3e1c792
commit d8551328f0

View File

@ -23,7 +23,7 @@
(defun center-content--content-pixel-size ()
"Return the size of the content of the visible text in pixels."
(window-text-pixel-size (selected-window) (window-start) (window-end)))
(window-text-pixel-size (selected-window) (window-start) (window-end nil t)))
(defun center-content--calculate-left-margin (content-width)
"Calculate the left margin relative to CONTENT-WIDTH."