pub fn adaptive_wrap_line<'a>(
line: &'a Line<'a>,
base: RtOptions<'a>,
) -> Vec<Line<'a>>Expand description
Wraps a single ratatui Line, automatically switching to
URL-preserving options when the line contains a URL-like token.
When no URL is detected, wrapping behavior is identical to
word_wrap_line. URL-only lines use url_preserving_wrap_options
so terminal link detection keeps seeing one intact token. Mixed URL/prose
lines use a token-aware wrapper so ordinary prose still moves as whole words
while a genuinely overlong non-URL token can still split if needed.