From d8551328f09c2b183f2ca5bd66108f906c22b3ce Mon Sep 17 00:00:00 2001 From: larstvei Date: Sat, 14 Sep 2024 23:37:52 +0200 Subject: [PATCH] Buggy when position isn't recomputed --- center-content.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/center-content.el b/center-content.el index 63f3a1a..bedf25c 100644 --- a/center-content.el +++ b/center-content.el @@ -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."