emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/visual-fill-column ccb017b24e 069/137: Bug fix: calculate


From: ELPA Syncer
Subject: [nongnu] elpa/visual-fill-column ccb017b24e 069/137: Bug fix: calculate right margin on the basis of left margin.
Date: Sun, 2 Jan 2022 22:59:12 -0500 (EST)

branch: elpa/visual-fill-column
commit ccb017b24ef58b91666f2ddb5b10602ea01fe7fb
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>

    Bug fix: calculate right margin on the basis of left margin.
    
    See `writeroom-mode-issue` #51:
    
    https://github.com/joostkremers/writeroom-mode/issues/51
---
 visual-fill-column.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/visual-fill-column.el b/visual-fill-column.el
index 8643d984c5..11f074902c 100644
--- a/visual-fill-column.el
+++ b/visual-fill-column.el
@@ -205,9 +205,7 @@ and `text-scale-mode-step'."
          (left (if visual-fill-column-center-text
                    (/ margins 2)
                  0))
-         (right (if visual-fill-column-center-text
-                    (/ margins 2)
-                  margins)))
+         (right (- margins left)))
 
     ;; put an explicitly R2L buffer on the right side of the window
     (when (and (eq bidi-paragraph-direction 'right-to-left)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]