diff options
author | Bastien <bzg@gnu.org> | 2020-01-25 19:46:35 +0100 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2020-01-25 19:46:35 +0100 |
commit | 7f1b51b61562418fec2ab04b9af19e024fbe4de7 (patch) | |
tree | a27ee694c733da5cea5260cb8205dfcf0db78335 | |
parent | 32f00fe90e7c0c5abdd765a6898e267c0c4ff8eb (diff) | |
download | org-mode-7f1b51b61562418fec2ab04b9af19e024fbe4de7.tar.gz |
Fix previous commit
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index bb6cc81..7ac3eda 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5840,7 +5840,7 @@ needs to be inserted at a specific position in the font-lock sequence.") (defun org-get-level-face (n) "Get the right face for match N in font-lock matching of headlines." (let* ((org-l0 (- (match-end 2) (match-beginning 1) 1)) - (org-l (when org-odd-levels-only (1+ (/ org-l0 2)) org-l0)) + (org-l (if org-odd-levels-only (1+ (/ org-l0 2)) org-l0)) (org-f (if org-cycle-level-faces (nth (% (1- org-l) org-n-level-faces) org-level-faces) (nth (1- (min org-l org-n-level-faces)) org-level-faces)))) |