From 914f6314c095a71115c98e48f1a4136e31825417 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 10 Dec 2024 23:11:21 +0800 Subject: [PATCH] :bug: Editor not automatically refreshed after rolling back document https://github.com/siyuan-note/siyuan/issues/13419 --- kernel/util/path.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/util/path.go b/kernel/util/path.go index 0669d05d16c..a9617da8457 100644 --- a/kernel/util/path.go +++ b/kernel/util/path.go @@ -38,6 +38,9 @@ var ( ) func GetTreeID(treePath string) string { + if strings.Contains(treePath, "\\") { + return strings.TrimSuffix(filepath.Base(treePath), ".sy") + } return strings.TrimSuffix(path.Base(treePath), ".sy") }