fix: preserve panel background in cursor mode (renderTextCursorContent)

Replace full ANSI reset sequences (\x1b[0m) added by lipgloss.Render() for
gutter markers, cursor highlights, and selection highlights with
background-preserving resets (\x1b[39;22;23;24;59;48;2;R;G;Bm) that restore
the panel background color.

Without this fix, every \x1b[0m from lipgloss-styled elements in
renderTextCursorContent resets the panel background (set by the outer
renderPreviewContent wrapper), causing some letters to have incorrect or
missing background color in caret mode.
This commit is contained in:
vrubelroman 2026-04-27 14:15:20 +03:00
parent e890e1871b
commit ce2f488c89
2 changed files with 15 additions and 2 deletions

View file

@ -4,7 +4,7 @@ right_path = ''
[ui]
app_title = 'vcom'
theme = 'catppuccin-mocha'
theme = 'nord-frost'
icon_mode = 'auto'
show_title_bar = true
show_footer = true