Fix typos

This commit is contained in:
Andrea Gelmini
2023-12-06 13:11:55 +01:00
parent b72de5a883
commit 241916d55b
45 changed files with 67 additions and 67 deletions

View File

@@ -325,7 +325,7 @@ func Truncate(s string, w int) string {
// Guess whether the first rune in s would occupy two terminal cells
// instead of one. This cannot be determined exactly without knowing
// the terminal font, so we treat all ambigous runes as full-width,
// the terminal font, so we treat all ambiguous runes as full-width,
// i.e., two cells.
func wideRune(s string) (wide bool, utfsize uint) {
prop, size := width.LookupString(s)