mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 03:40:04 -06:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user