🐛 Improve outline dnd https://github.com/siyuan-note/siyuan/issues/10828
This commit is contained in:
parent
85a3e7ceca
commit
e4fe17853c
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
|
|||
heading.HeadingLevel = firstHeading.HeadingLevel
|
||||
|
||||
firstHeading.InsertBefore(heading)
|
||||
for i := 0; i < len(headingChildren)-1; i++ {
|
||||
for i := 0; i < len(headingChildren); i++ {
|
||||
child := headingChildren[i]
|
||||
if ast.NodeHeading == child.Type {
|
||||
child.HeadingLevel -= diffLevel
|
||||
|
|
Loading…
Add table
Reference in a new issue