Explorar o código

org-indent: Handle indentation change with headline manual insertion

* lisp/org-indent.el (org-indent-refresh-maybe): Check for new
  headlines from the beginning of the line to be sure to catch
  any newly inserted headline there.
Nicolas Goaziou %!s(int64=13) %!d(string=hai) anos
pai
achega
87a228cd6b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lisp/org-indent.el

+ 1 - 0
lisp/org-indent.el

@@ -412,6 +412,7 @@ This function is meant to be called by `after-change-functions'."
       (if (or org-indent-modified-headline-flag
 	      (save-excursion
 		(goto-char beg)
+		(beginning-of-line)
 		(re-search-forward org-outline-regexp-bol end t)))
 	(let ((end (save-excursion
 		     (goto-char end)