kitty/kittens
gogongxt 56f276580f Fix hints kitten breaking multi-byte UTF-8 characters when overlaying hint labels
In highlight_mark(), mark_text was sliced using byte-based indexing
(mark_text[:len(hint)] and mark_text[len(hint):]). Since len(hint)
equals the rune count (hint is always ASCII), but len(mark_text) is a
byte count, this could slice in the middle of a multi-byte UTF-8
sequence (e.g. CJK characters), producing an invalid byte sequence
rendered as the Unicode replacement character (�).

Fix by converting mark_text to []rune first, then slicing at rune
boundaries. The hint is ASCII so len(hint) == rune count, requiring
no conversion on the hint side.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 17:09:42 +08:00
..
ask Modernize Go code 2026-03-21 08:41:47 +05:30
broadcast rename typing module to avoid conflicts with stdlib typing 2025-04-28 09:20:10 +05:30
choose_files choose-files kitten: Output a trailing newline when writing to a tty in text format 2026-05-07 08:53:09 +05:30
choose_fonts run modernize 2025-11-11 17:09:37 +05:30
clipboard Use SIMD base64 everywhere 2026-04-21 11:56:55 +05:30
command_palette run go modernizer 2026-04-16 19:12:31 +05:30
desktop_ui desktop-ui kitten: Re-read config on every file chooser invocation via portal 2026-02-03 21:08:55 +05:30
diff Make sticky_header default to yes 2026-04-19 12:14:39 +05:30
dnd Fix failing test 2026-05-12 12:52:04 +05:30
hints Fix hints kitten breaking multi-byte UTF-8 characters when overlaying hint labels 2026-05-13 17:09:42 +08:00
hyperlinked_grep run modernize 2025-11-11 17:09:37 +05:30
icat DRYer 2026-04-10 15:32:27 +05:30
notify Use SIMD base64 everywhere 2026-04-21 11:56:55 +05:30
pager Rename go module from kitty -> github.com/kovidgoyal/kitty 2025-05-16 08:43:39 +05:30
panel Sort imports 2026-04-19 21:53:09 +05:30
query_terminal DRYer 2026-04-10 15:32:27 +05:30
quick_access_terminal Cache parsing of command line specifications 2025-09-29 12:31:10 +05:30
remote_file rename typing module to avoid conflicts with stdlib typing 2025-04-28 09:20:10 +05:30
resize_window Update codebase to Python 3.10 using pyupgrade 2025-02-03 10:56:50 +05:30
show_key Modernize Go code 2026-03-21 08:41:47 +05:30
ssh Sanitize ssh kitten shm open error message when sending over tty 2026-04-24 17:25:00 +05:30
themes feat: add per-mapping --allow-fallback for layout-independent shortcuts 2026-03-25 19:34:13 +03:00
transfer Use SIMD base64 everywhere 2026-04-21 11:56:55 +05:30
tui Fix creating default event loop on Python 3.14+ 2025-10-13 20:09:54 +08:00
unicode_input Rename go module from kitty -> github.com/kovidgoyal/kitty 2025-05-16 08:43:39 +05:30
__init__.py
runner.py Allow custom kitten names with hyphens in them 2025-05-06 22:16:28 +05:30