diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-12-04 14:49:58 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-12-04 14:49:58 +0800 |
| commit | 5fde983137bdc42d5e164a7ad6f797899ab5ed37 (patch) | |
| tree | 9e9a600040f603d506ce6cbe4930c13fb974070c /src/utils | |
| parent | 262d71be20a3f55091344280f67270465b30545f (diff) | |
Add description column to `jv here --desc` output
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/display.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/display.rs b/src/utils/display.rs index cab7477..a7ccb9c 100644 --- a/src/utils/display.rs +++ b/src/utils/display.rs @@ -126,7 +126,7 @@ impl std::fmt::Display for SimpleTable { } } -fn display_width(s: &str) -> usize { +pub fn display_width(s: &str) -> usize { // Filter out ANSI escape sequences before calculating width let filtered_bytes = strip_ansi_escapes::strip(s); let filtered_str = match std::str::from_utf8(&filtered_bytes) { |
