We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e42490 + 25a9585 commit 6d2bd94Copy full SHA for 6d2bd94
src/renderer/mod.rs
@@ -2664,11 +2664,11 @@ fn num_decimal_digits(num: usize) -> usize {
2664
MAX_DIGITS
2665
}
2666
2667
-pub fn str_width(s: &str) -> usize {
+fn str_width(s: &str) -> usize {
2668
s.chars().map(char_width).sum()
2669
2670
2671
-pub fn char_width(ch: char) -> usize {
+fn char_width(ch: char) -> usize {
2672
// FIXME: `unicode_width` sometimes disagrees with terminals on how wide a `char` is. For now,
2673
// just accept that sometimes the code line will be longer than desired.
2674
match ch {
0 commit comments