MCPcopy Create free account
hub / github.com/GCWing/BitFun / close_user_bubble

Method close_user_bubble

src/apps/cli/src/ui/chat/render.rs:395–407  ·  view source on GitHub ↗
(
            items: &mut Vec<ListItem<'static>>,
            plain_lines: &mut Vec<String>,
            open: &mut bool,
            user_bg_style: Style,
            user_border_style: Style,
      

Source from the content-addressed store, hash-verified

393 }
394
395 fn close_user_bubble(
396 items: &mut Vec<ListItem<'static>>,
397 plain_lines: &mut Vec<String>,
398 open: &mut bool,
399 user_bg_style: Style,
400 user_border_style: Style,
401 ) {
402 if *open {
403 items.push(user_padding_line(user_bg_style, user_border_style));
404 plain_lines.push(" | ".to_string());
405 *open = false;
406 }
407 }
408
409 fn wrap_hard_display_width(s: &str, max_width: usize) -> Vec<String> {
410 if max_width == 0 {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected