MCPcopy Create free account
hub / github.com/Eeive/Evcode-ide / line_num_width

Function line_num_width

src/ui/mod.rs:19–21  ·  view source on GitHub ↗
(line_count: usize)

Source from the content-addressed store, hash-verified

17pub use colors::Colors;
18
19pub fn line_num_width(line_count: usize) -> u16 {
20 if line_count >= 1000 { 5 } else { 4 }
21}
22
23pub fn draw(f: &mut Frame, app: &mut App) {
24 let area = f.area();

Callers 2

drawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected