Skip to content

Commit 25a9585

Browse files
committed
fix!: Remove char_width and str_width from the public API
1 parent 622b394 commit 25a9585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,11 +2666,11 @@ fn num_decimal_digits(num: usize) -> usize {
26662666
MAX_DIGITS
26672667
}
26682668

2669-
pub fn str_width(s: &str) -> usize {
2669+
fn str_width(s: &str) -> usize {
26702670
s.chars().map(char_width).sum()
26712671
}
26722672

2673-
pub fn char_width(ch: char) -> usize {
2673+
fn char_width(ch: char) -> usize {
26742674
// FIXME: `unicode_width` sometimes disagrees with terminals on how wide a `char` is. For now,
26752675
// just accept that sometimes the code line will be longer than desired.
26762676
match ch {

0 commit comments

Comments
 (0)