branch: externals/valign
commit cc53114f40bb33c1060437b44c07ea7741b86bd9
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>

    * 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