summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2011-06-17 16:51:17 -0700
committerDan Davison <dandavison7@gmail.com>2011-06-17 16:51:29 -0700
commit4f3a31dd974f93cb6d7c3f8cbb0c0e2df19adb61 (patch)
tree4b8b5012109bd7244a297c0a3bf4e0f9bd07cf7e
parentf4228495572f1862d203f591b990e9e40877d590 (diff)
downloadorg-mode-4f3a31dd974f93cb6d7c3f8cbb0c0e2df19adb61.tar.gz
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
-rw-r--r--lisp/org-src.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 7e6f20e..3dda064 100644
--- a/lisp/org-src.el
+++ b/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))