Browse Source

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.
Bastien Guerry 12 years ago
parent
commit
50837906ec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org.el

+ 1 - 0
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.