mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-18 22:13:49 -07:00
chore: use strings.ReplaceAll (#3801)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user