mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
chore: use strings.ReplaceAll (#3801)
This commit is contained in:
@@ -1025,7 +1025,7 @@ func (w *LightWindow) Print(text string) {
|
||||
}
|
||||
|
||||
func cleanse(str string) string {
|
||||
return strings.Replace(str, "\x1b", "", -1)
|
||||
return strings.ReplaceAll(str, "\x1b", "")
|
||||
}
|
||||
|
||||
func (w *LightWindow) CPrint(pair ColorPair, text string) {
|
||||
|
||||
Reference in New Issue
Block a user