mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 12:19:36 +00:00
Fix tabs and carriage returns being incorrectly sanitized
This commit is contained in:
parent
b5c2d85837
commit
e774deaef1
2 changed files with 3 additions and 14 deletions
|
|
@ -104,7 +104,9 @@ func hash_for_path(path string) (string, error) {
|
|||
}
|
||||
|
||||
func sanitize_control_codes(x string) string {
|
||||
return utils.SanitizeControlCodes(x, "░")
|
||||
// exclude newlines, carriage returns and tabs
|
||||
pat := utils.MustCompile("[\x00-\x08\x0b\x0c\x0e-\x1f\x7f\u0080-\u009f]")
|
||||
return pat.ReplaceAllLiteralString(x, "░")
|
||||
}
|
||||
|
||||
func sanitize_tabs_and_carriage_returns(x string) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue