Переглянути джерело

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 роки тому
батько
коміт
50837906ec
1 змінених файлів з 1 додано та 0 видалено
  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.