fix: sanitize names on file operations (#2546)

* fix: sanitize names on file operations

* dont strip internal colors

* minimize sanitation

* cover history entries

* minor improvement

* fix patch

* optimize patch
This commit is contained in:
valoq authored and GitHub committed 2026-05-19 11:27:02 +10:00
1 parent 42e567abbd
commit 0ca4d75b9b
3 files changed
+56 -20

No files matched your search

+1 -1
View File
@@ -1557,7 +1557,7 @@ func (e *callExpr) eval(app *app, _ []string) {
}
}
case "echo":
app.ui.echo(strings.Join(e.args, " "))
app.ui.echo(sanitizeMessage(strings.Join(e.args, " ")))
case "echomsg":
app.ui.echomsg(strings.Join(e.args, " "))
case "echoerr":