chore: use strings.ReplaceAll (#3801)

This commit is contained in:
Zhizhen He
2024-05-18 16:06:33 +08:00
committed by GitHub
parent 0994d9c881
commit 01e7668915
6 changed files with 13 additions and 13 deletions

View File

@@ -618,7 +618,7 @@ func defaultKeymap() map[tui.Event][]*action {
}
func trimQuery(query string) []rune {
return []rune(strings.Replace(query, "\t", " ", -1))
return []rune(strings.ReplaceAll(query, "\t", " "))
}
func mayTriggerPreview(opts *Options) bool {