Open Chiffario opened 1 week ago
Partially fixed: previously all styles were reset after displaying a kitty image, now only the foreground is reset. That is, the issue persists for foreground color styles only, in the same as it way as reported for background color.
Sorry for a slightly confusing phrasing, but here's the issue I've found
If you change the background color of an area within a buffer, then render an
Image
widget within the same buffer, the entire area to the right of the image won't retain the style. On top of that, trying to reapply the same style to the remaining area doesn't do anything, yet applying a new background color actually affects it properlyMinimally reproducible version:
Results
buf.set_style(remaining_area, style);
buf.set_style(remaining_area, style.on_red());
Terminal used: kitty, can't test on other image backends at the moment unfortunately
Note: Making a new style with the same background color doesn't work either
If possible, I'd like to help but I probably need some direction for that