forked from mirrors/org-mode
org-src: Fix fontification error
* lisp/org-src.el (org-src-font-lock-fontify-block): Fix fontification
error introduced in commit f2a5104e45
.
TINYCHANGE
This commit is contained in:
parent
10bd44db7b
commit
0ccd8286a1
|
@ -525,7 +525,7 @@ as `org-src-fontify-natively' is non-nil."
|
|||
(let ((inhibit-modification-hooks nil))
|
||||
(erase-buffer)
|
||||
;; Add string and a final space to ensure property change.
|
||||
(insert string " ")
|
||||
(insert string " "))
|
||||
(unless (eq major-mode lang-mode) (funcall lang-mode))
|
||||
(org-font-lock-ensure)
|
||||
(let ((pos (point-min)) next)
|
||||
|
@ -537,7 +537,7 @@ as `org-src-fontify-natively' is non-nil."
|
|||
(put-text-property
|
||||
(+ start (1- pos)) (1- (+ start next)) prop new-prop
|
||||
org-buffer)))
|
||||
(setq pos next)))))
|
||||
(setq pos next))))
|
||||
;; Add Org faces.
|
||||
(let ((src-face (nth 1 (assoc-string lang org-src-block-faces t))))
|
||||
(when (or (facep src-face) (listp src-face))
|
||||
|
|
Loading…
Reference in New Issue