From 4b1e79bd1547452a91ae67483bc5cabafa05e6d3 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 16 Dec 2025 21:14:40 +0800 Subject: [PATCH] :art: Improve the behavior of `Jump to parent block` in lists https://github.com/siyuan-note/siyuan/issues/16516 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/block.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/kernel/model/block.go b/kernel/model/block.go index 03474477b..e41851f43 100644 --- a/kernel/model/block.go +++ b/kernel/model/block.go @@ -244,7 +244,20 @@ func GetBlockSiblingID(id string) (parent, previous, next string) { } parent = listParent2.ID - previous, next = getPreNext(listParent) + if nil == listParent.Previous { + if nil != listParent2.Previous { + previous = listParent2.Previous.ID + } + } else { + previous = listParent.Previous.ID + } + if nil == listParent.Next { + if nil != listParent2.Next { + next = listParent2.Next.ID + } + } else { + next = listParent.Next.ID + } return }