]> git.eshelyaron.com Git - emacs.git/commitdiff
(org-get-level-face): Fixed bug with level counting.
authorCarsten Dominik <dominik@science.uva.nl>
Mon, 27 Mar 2006 08:03:33 +0000 (08:03 +0000)
committerCarsten Dominik <dominik@science.uva.nl>
Mon, 27 Mar 2006 08:03:33 +0000 (08:03 +0000)
lisp/textmodes/org.el

index ad4744adf157dff0bee8450eedecc34b2297e899..5d1efeb690225928539000c4c15213812e72c522 100644 (file)
@@ -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)