mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-12 08:51:08 +00:00
write_escaped_ch compares the decoded rune against utf8.RuneError to detect invalid UTF-8, but a literal U+FFFD decodes to that same rune, so an escaped replacement character was silently deleted. The size returned by DecodeRuneInString already tells the two apart: invalid bytes decode with a size of one, a real U+FFFD with a size of three. Keep the rune when the size is greater than one. |
||
|---|---|---|
| .. | ||
| cli | ||
| cmd | ||
| config | ||
| crypto | ||
| disk_cache | ||
| fzf | ||
| highlight | ||
| icons | ||
| ignorefiles | ||
| rsync | ||
| simdstring | ||
| themes | ||
| tty | ||
| tui | ||
| unicode_names | ||
| utils | ||
| vt | ||
| watch | ||
| wcswidth | ||
| README.rst | ||
This folder contains library and utility code for the various "kittens". Small terminal programs compiled statically for doing things like kitty remote control, icat etc. These are often re-implementations of earlier kittens that were written in Python.