소스 검색

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
 				   (string-match
 				    "^\\*+$" (buffer-substring
 				    "^\\*+$" (buffer-substring
 					      (point-at-bol) (point))))
 					      (point-at-bol) (point))))
-			      (- (match-end 1) (match-beginning 1)))
+			      (- (match-end 0) (match-beginning 0)))
 			     ((and (bolp)
 			     ((and (bolp)
 				   (looking-at org-outline-regexp))
 				   (looking-at org-outline-regexp))
 			      (- (match-end 0) (point) 1))))
 			      (- (match-end 0) (point) 1))))