diff options
author | Bastien Guerry <bzg@altern.org> | 2012-09-21 18:00:36 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-09-21 18:00:52 +0200 |
commit | 50837906ec25996d9d26aeb402ace90b85014159 (patch) | |
tree | fb15fd4684aac5737470264e143c06b563500067 | |
parent | 996a49dd4469c319655c31522b1f96991f2fae70 (diff) | |
download | org-mode-50837906ec25996d9d26aeb402ace90b85014159.tar.gz |
org.el: Fix bug in `org-insert-drawer'
* org.el (org-insert-drawer): Deactivate the mark before
trying to indent the :END: of the drawer.
Thanks to Christoph LANGE for reporting this.
-rw-r--r-- | lisp/org.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org.el b/lisp/org.el index 419d17c..4a76892 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14949,6 +14949,7 @@ Point is left between drawer's boundaries." (goto-char rend) (skip-chars-backward " \r\t\n") (insert "\n:END:") + (deactivate-mark t) (indent-for-tab-command) (unless (eolp) (insert "\n"))) ;; Clear marker, whatever the outcome of insertion is. |