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

Method prefix_display_width

src/apps/cli/src/ui/text_input.rs:30–34  ·  view source on GitHub ↗

The display width of the longest prefix (first_line or continuation).

(&self)

Source from the content-addressed store, hash-verified

28impl TextInputStyle {
29 /// The display width of the longest prefix (first_line or continuation).
30 pub fn prefix_display_width(&self) -> usize {
31 let a = self.first_line_prefix.width();
32 let b = self.continuation_prefix.width();
33 a.max(b)
34 }
35}
36
37impl Default for TextInputStyle {

Callers 2

build_visual_linesMethod · 0.80
renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected