branch: elpa/org-superstar commit 2cd3f1e74b88a846901da3249edb3a71d8e58c55 Merge: af91ebb24a 82440ccda4 Author: D. Williams <d.willi...@posteo.net> Commit: GitHub <nore...@github.com>
Merge pull request #31 from andersjohansson/avoid-empty-font-lock-keyword Avoid empty font-lock keyword if inlinetask first bullet is not used --- org-superstar.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org-superstar.el b/org-superstar.el index e157fa152e..2bf49bfbcc 100644 --- a/org-superstar.el +++ b/org-superstar.el @@ -851,11 +851,11 @@ cleanup routines." ,@(when (featurep 'org-inlinetask) '((2 (org-superstar--prettify-other-hbullet) prepend)))) - ("^\\(?4:\\*\\)\\(?:\\*\\{2,\\}\\) " - ,@(when (and (featurep 'org-inlinetask) - org-inlinetask-show-first-star - (not org-superstar-remove-leading-stars)) - '((4 (org-superstar--prettify-first-bullet) + ,@(when (and (featurep 'org-inlinetask) + org-inlinetask-show-first-star + (not org-superstar-remove-leading-stars)) + '(("^\\(?4:\\*\\)\\(?:\\*\\{2,\\}\\) " + (4 (org-superstar--prettify-first-bullet) t))))))) (defun org-superstar--fontify-buffer ()