Cleanup previous PR

- Treat trailing empty SGR color parameters as zero, matching the terminal
- Ignore the color space id in colon form RGB colors (38:2:id:r:g:b)
- Fix bright colors (90-97, 100-107, 38;5;8-15) being re-emitted off by one
- Handle parse errors explicitly and simplify color target selection
- Add tests for SGR state parsing
This commit is contained in:
Kovid Goyal 2026-11-18 15:04:55 +05:30
parent f8e5ec9345
commit b4b186a6ad
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
3 changed files with 91 additions and 18 deletions

View file

@ -199,8 +199,10 @@ Detailed list of changes
- :doc:`choose-files <kittens/choose-files>`: Fix incorrect cached previews
when a file or symlink changes during rendering.
- :doc:`choose-files <kittens/choose-files>`: Fix crashes and preserve extended
colors when wrapping the output of custom preview commands.
- kittens: Fix a crash when wrapping text that contains extended SGR colors,
such as the output of custom preview commands in :doc:`choose-files
<kittens/choose-files>`. Also fix bright colors and colors with a color space
id being changed by the wrapping.
- IME: Move cursor position within pre-edit text (:iss:`10807`)