This commit is contained in:
Daniel 2025-04-13 20:32:58 +08:00
parent e24ff7d8c4
commit 10d1735688
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 6 additions and 0 deletions

View file

@ -799,6 +799,8 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
if "" == n.TextMarkTextContent { if "" == n.TextMarkTextContent {
unlinks = append(unlinks, n) unlinks = append(unlinks, n)
} }
util.PushReloadTag()
} else if n.IsTextMarkType("u") { } else if n.IsTextMarkType("u") {
if !replaceTypes["u"] { if !replaceTypes["u"] {
return ast.WalkContinue return ast.WalkContinue

View file

@ -182,6 +182,10 @@ func PushReloadFiletree() {
BroadcastByType("filetree", "reloadFiletree", 0, "", nil) BroadcastByType("filetree", "reloadFiletree", 0, "", nil)
} }
func PushReloadTag() {
BroadcastByType("main", "reloadTag", 0, "", nil)
}
type BlockStatResult struct { type BlockStatResult struct {
RuneCount int `json:"runeCount"` RuneCount int `json:"runeCount"`
WordCount int `json:"wordCount"` WordCount int `json:"wordCount"`