org.el (org-insert-heading): Fix code typo master
authorBastien Guerry <bzg@altern.org>
Wed, 16 Apr 2014 16:28:26 +0000 (18:28 +0200)
committerBastien Guerry <bzg@altern.org>
Wed, 16 Apr 2014 16:28:26 +0000 (18:28 +0200)
* org.el (org-insert-heading): Fix code typo.

Thanks to Thorsten Jolitz for reporting this and to Nicolas Richard
for his comments.

lisp/org.el

index 56bdb7e..d8c9aed 100644 (file)
@@ -7735,7 +7735,7 @@ This is important for non-interactive uses of the command."
          (when respect-content
            (org-end-of-subtree nil t)
            (skip-chars-backward " \r\n")
-           (and (not (looking-back "^\*+"))
+           (and (not (looking-back "^\\*+"))
                 (looking-at "[ \t]+") (replace-match ""))
            (unless (eobp) (forward-char 1))
            (when (looking-at "^\\*")