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

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

[elpa] externals/olivetti 751b90f 028/134: Fixes #3


From: Stefan Monnier
Subject: [elpa] externals/olivetti 751b90f 028/134: Fixes #3
Date: Thu, 25 Apr 2019 09:57:21 -0400 (EDT)

branch: externals/olivetti
commit 751b90f947f624f688ce4680d77067ad491e8663
Author: Paul Rankin <address@hidden>
Commit: Paul Rankin <address@hidden>

    Fixes #3
---
 olivetti.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/olivetti.el b/olivetti.el
index 1287f57..63159fa 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -158,7 +158,9 @@ mode line. Finally redraw the frame."
   (let* ((n (olivetti-safe-width olivetti-body-width))
          (width (cond ((integerp n) n)
                       ((floatp n) (* (window-total-width) n))))
-         (margin (round (/ (- (window-total-width) width) 2))))
+         (margin (max (round (/ (- (window-total-width) width)
+                                2))
+                      0)))
     (set-window-margins (selected-window) margin margin)))
 
 (defun olivetti-toggle-hide-modeline ()



reply via email to

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