瀏覽代碼

org.el (org-paste-subtree): Fix match subexpression

* org.el (org-paste-subtree): Fix match subexpression.

Thanks to Anders Johansson for reporting this.
Bastien Guerry 10 年之前
父節點
當前提交
d8a0ee7aad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -8318,7 +8318,7 @@ the inserted text when done."
 				   (string-match
 				    "^\\*+$" (buffer-substring
 					      (point-at-bol) (point))))
-			      (- (match-end 1) (match-beginning 1)))
+			      (- (match-end 0) (match-beginning 0)))
 			     ((and (bolp)
 				   (looking-at org-outline-regexp))
 			      (- (match-end 0) (point) 1))))