add more comments

This commit is contained in:
Taehwan Kim 2024-06-20 11:59:39 +09:00 committed by Wei Zhang
parent cfe301af7b
commit 8921545237

View file

@ -456,6 +456,7 @@ fn get_visible_width(input: &str, hyperlink: bool) -> usize {
}
}
// `UnicodeWidthStr::width` counts all unicode characters including escape '\u{1b}' and hyperlink '\x1B'
UnicodeWidthStr::width(input) - nb_invisible_char
}