From 5afacc5fce272e0cbb59468cc1a602cddcadb91e Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 21 Apr 2020 18:42:43 +0200 Subject: [PATCH] Do not apply drawer face also on indentation * lisp/org.el (org-fontify-drawers): Do not apply drawer face also on indentation. Reported-by: Norman Tovey-Walsh --- lisp/org.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index acd9fa220..0c3d7309b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5286,9 +5286,8 @@ by a #." (defun org-fontify-drawers (limit) "Fontify drawers." (when (re-search-forward org-drawer-regexp limit t) - (add-text-properties - (line-beginning-position) (line-beginning-position 2) - '(font-lock-fontified t face org-drawer)) + (add-text-properties (1- (match-beginning 1)) (1+ (match-end 1)) + '(font-lock-fontified t face org-drawer)) (org-remove-flyspell-overlays-in (line-beginning-position) (line-beginning-position 2)) t))