diff options
author | Bastien Guerry <bzg@altern.org> | 2014-07-28 01:02:50 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-07-28 01:02:50 +0200 |
commit | d8a0ee7aadd7e7bf986184d4597f6cfa30fa2205 (patch) | |
tree | 5d922389136b75fbeb3cf71c67cd8e7bce896b9b | |
parent | 3fd24ed2a024542f98ae481c9ad5bc30c993d552 (diff) | |
download | org-mode-d8a0ee7aadd7e7bf986184d4597f6cfa30fa2205.tar.gz |
org.el (org-paste-subtree): Fix match subexpression
* org.el (org-paste-subtree): Fix match subexpression.
Thanks to Anders Johansson for reporting this.
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index adfbeaa..06f54f4 100644 --- a/lisp/org.el +++ b/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)))) |