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

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

[nongnu] elpa/org-superstar 0a2dedc91f 107/162: Fix typo in org-supersta


From: Stefan Kangas
Subject: [nongnu] elpa/org-superstar 0a2dedc91f 107/162: Fix typo in org-superstar-plain-list-p causing it to always return t.
Date: Fri, 31 Dec 2021 19:35:32 -0500 (EST)

branch: elpa/org-superstar
commit 0a2dedc91f9e79e5f8414609cb6e6a18c30b7199
Author: D. Williams <d.williams@posteo.net>
Commit: D. Williams <d.williams@posteo.net>

    Fix typo in org-superstar-plain-list-p causing it to always return t.
---
 org-superstar.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/org-superstar.el b/org-superstar.el
index 99d0e29580..ccf0caef09 100644
--- a/org-superstar.el
+++ b/org-superstar.el
@@ -5,7 +5,7 @@
 ;; Author: D. Williams <d.williams@posteo.net>
 ;; Maintainer: D. Williams <d.williams@posteo.net>
 ;; Keywords: faces, outlines
-;; Version: 1.2.0
+;; Version: 1.2.1
 ;; Homepage: https://github.com/integral-dw/org-superstar-mode
 ;; Package-Requires: ((org "9.1.9") (emacs "26.1"))
 
@@ -480,10 +480,10 @@ This function may be expensive for files with very large 
plain
 lists; consider using ‘org-superstar-toggle-lightweight-lists’ in
 such cases to avoid slowdown."
   (or org-superstar-lightweight-lists
-      (save-match-data
-        (org-element-lineage (org-element-at-point)
-                             '(plain-list) t))
-      t))
+      (and (save-match-data
+            (org-element-lineage (org-element-at-point)
+                                 '(plain-list) t))
+          t)))
 
 (defun org-superstar-headline-or-inlinetask-p ()
   "Return t if the current match is a proper headline or inlinetask."



reply via email to

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