Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Corneliu Petrea committed Apr 20, 2018
1 parent 942618a commit ecde0d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions org-olp.el
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,9 @@ then inserts the element *under* the heading pointed to by the second olp
))
((< src-level (+ dst-level 1)) (progn
(message "[DBG] lower level")
(goto-char dst-contents-end)
(org-paste-subtree)
;; (previous-line)
(org-demote-subtree)
(org-olp--goto-end)
(insert "\n")
(org-paste-subtree (+ dst-level 1))
))
)
))
Expand Down
1 change: 1 addition & 0 deletions tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ content151
content152
*** a153
content153
**** a14
content14
*** a154
Expand Down

0 comments on commit ecde0d9

Please sign in to comment.