Describe the bug
Color highlighting in the viewport bubble seems to be getting messed up when the content has ANSI color codes (like those generated using chroma). This seems to be the case regardless of whether "high performance rendering" mode is ON or OFF (although the way the color highlighting breaks seems to be different between the two).
Maybe I'm missing something super obvious, but, for the life of me, I couldn't figure out how to get it working.
Setup
Please complete the following information along with version numbers, if applicable.
OS: macos Sonoma (14.1.2)
Shell: zsh 5.9
Terminal Emulator: alacritty 0.13.2
Terminal Multiplexer: tmux 3.4 (also reproducible without tmux)
Describe the bug Color highlighting in the viewport bubble seems to be getting messed up when the content has ANSI color codes (like those generated using chroma). This seems to be the case regardless of whether "high performance rendering" mode is ON or OFF (although the way the color highlighting breaks seems to be different between the two). Maybe I'm missing something super obvious, but, for the life of me, I couldn't figure out how to get it working.
Setup Please complete the following information along with version numbers, if applicable.
14.1.2
)5.9
0.13.2
3.4
(also reproducible without tmux)To Reproduce Steps to reproduce the behavior:
go build .
./bbteavpdemo -lib=btea
./bbteavpdemo -lib=btea -hp
(for high performance rendering mode)./bbteavpdemo -lib=tview
(to compare behaviour with tview)Source Code https://github.com/dhth/bbteavpdemo
Expected behavior ANSI color highlighting should not bleed into surrounding text.
Screenshots Here's a video demonstrating the issue.![image](https://github.com/charmbracelet/bubbles/assets/13575379/efb5d823-8f8b-4a3e-aaaa-d15294bdf9c3)
Love what y'll do; thanks in advance!