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

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

[elpa] externals/valign cc53114 060/198: * valign.el (valign-initial-ali


From: Stefan Monnier
Subject: [elpa] externals/valign cc53114 060/198: * valign.el (valign-initial-alignment): Fix.
Date: Tue, 1 Dec 2020 18:19:16 -0500 (EST)

branch: externals/valign
commit cc53114f40bb33c1060437b44c07ea7741b86bd9
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    * valign.el (valign-initial-alignment): Fix.
---
 valign.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/valign.el b/valign.el
index d3a9a96..f467419 100644
--- a/valign.el
+++ b/valign.el
@@ -378,8 +378,8 @@ Force align if FORCE non-nil."
   ;; Technically we don’t need to check if the current buffer
   ;; is visible, but third-party packages refontify buffers
   ;; before they are visible, like org-superstart.
-  (when ((get-buffer-window (current-buffer))
-         (or force (text-property-any beg end 'valign-init nil)))
+  (when (and (get-buffer-window (current-buffer))
+             (or force (text-property-any beg end 'valign-init nil)))
     (save-excursion
       (goto-char beg)
       (while (and (search-forward "|" nil t)



reply via email to

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