summaryrefslogtreecommitdiffstats
path: root/src/tui/light.go
diff options
context:
space:
mode:
authorZhizhen He <hezhizhen.yi@gmail.com>2024-05-18 16:06:33 +0800
committerGitHub <noreply@github.com>2024-05-18 17:06:33 +0900
commit01e7668915c4e3cf8c9eeca283d41beac924fe1f (patch)
tree721306578106c58da6cdb0c04543eaba53b7d5a1 /src/tui/light.go
parent0994d9c881f8380997b96bb0a4a7416b50bc2b0d (diff)
chore: use strings.ReplaceAll (#3801)
Diffstat (limited to 'src/tui/light.go')
-rw-r--r--src/tui/light.go2
1 files changed, 1 insertions, 1 deletions
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) {