v2.17.1 (#823)
Co-authored-by: Jean Burellier <sheplu@users.noreply.github.com> Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Nelson PROIA <144663685+Nelson-PROIA@users.noreply.github.com> Co-authored-by: renovate-mistral[bot] <253709520+renovate-mistral[bot]@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
6bedf271ce
commit
725d3a56ce
35 changed files with 1330 additions and 288 deletions
|
|
@ -2,7 +2,7 @@ from __future__ import annotations
|
|||
|
||||
from textual.content import Content
|
||||
from textual.highlight import HighlightTheme
|
||||
from textual.widgets import Static
|
||||
from textual.widget import Widget
|
||||
|
||||
from vibe.cli.textual_ui.widgets.diff_rendering import (
|
||||
_build_diff_line,
|
||||
|
|
@ -35,7 +35,9 @@ def _render_with_colors(*args, **kwargs):
|
|||
return widgets, diff_border_colors(widgets)
|
||||
|
||||
|
||||
def _plain(widget: Static) -> str:
|
||||
def _plain(widget: Widget) -> str:
|
||||
if plain := getattr(widget, "plain", None):
|
||||
return plain
|
||||
visual = widget.render()
|
||||
return visual.plain if isinstance(visual, Content) else str(visual)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue