mirror of
https://github.com/lsd-rs/lsd
synced 2024-12-14 06:02:36 +00:00
add more comments
This commit is contained in:
parent
cfe301af7b
commit
8921545237
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue