From c61e94b456053f51a8c2bbe07ab4ab30afaea775 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 27 Mar 2006 08:03:33 +0000 Subject: [PATCH] (org-get-level-face): Fixed bug with level counting. --- lisp/textmodes/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index ad4744adf15..5d1efeb6902 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el @@ -2383,7 +2383,7 @@ between words." "Get the right face for match N in font-lock matching of healdines." (setq org-l (- (match-end 2) (match-beginning 1))) (if org-odd-levels-only (setq org-l (1+ (/ org-l 2)))) - (setq org-f (nth (1- (% org-l org-n-levels)) org-level-faces)) + (setq org-f (nth (% (1- org-l) org-n-levels) org-level-faces)) (cond ((eq n 1) (if org-hide-leading-stars 'org-hide org-f)) ((eq n 2) org-f) -- 2.39.2