From 01e7668915c4e3cf8c9eeca283d41beac924fe1f Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Sat, 18 May 2024 16:06:33 +0800 Subject: chore: use strings.ReplaceAll (#3801) --- src/tui/light.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tui') diff --git a/src/tui/light.go b/src/tui/light.go index 4d3f58a4..1181d167 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -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) { -- cgit v1.2.3