branch: elpa/org-superstar
commit 979d2dd1991d72dca289186cce07aff4b2d97c77
Merge: 2cd3f1e74b 8077107c9f
Author: D. Williams <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #34 from taquangtrung/master
    
    disable org-superstar in org source code block
---
 org-superstar.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/org-superstar.el b/org-superstar.el
index 2bf49bfbcc..337621fd0f 100644
--- a/org-superstar.el
+++ b/org-superstar.el
@@ -637,10 +637,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
-      (and (save-match-data
+      (save-match-data
+        (and (not (org-in-src-block-p))
             (org-element-lineage (org-element-at-point)
-                                 '(plain-list) t))
-          t)))
+                                 '(plain-list) t)))))
 
 (defun org-superstar-headline-or-inlinetask-p ()
   "Return t if the current match is a proper headline or inlinetask."

Reply via email to