Explorar o código

Fix a bug in in-buffer src fontification

* lisp/org-src.el: Append a space character to copied text so that the
                   final text property change is picked up correctly
Dan Davison %!s(int64=14) %!d(string=hai) anos
pai
achega
4f3a31dd97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org-src.el

+ 1 - 1
lisp/org-src.el

@@ -774,7 +774,7 @@ fontification of code blocks see `org-src-fontify-block' and
 	      (get-buffer-create
 	       (concat " org-src-fontification:" (symbol-name lang-mode)))
 	    (delete-region (point-min) (point-max))
-	    (insert string)
+	    (insert (concat string " ")) ;; so there's a final property change
 	    (unless (eq major-mode lang-mode) (funcall lang-mode))
 	    (font-lock-fontify-buffer)
 	    (setq pos (point-min))