mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-10 02:38:50 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
be233229a9
commit
a9ce100c43
1 changed files with 3 additions and 0 deletions
|
|
@ -94,6 +94,9 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
|
|||
targetNode = heading.Previous
|
||||
}
|
||||
}
|
||||
if targetNode.ID == heading.ID {
|
||||
targetNode = heading.Previous
|
||||
}
|
||||
|
||||
diffLevel := heading.HeadingLevel - previousHeading.HeadingLevel
|
||||
heading.HeadingLevel = previousHeading.HeadingLevel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue