I notice that there are several places in the code where it adjusts the rune width like this:
w := runewidth.RuneWidth(r)
if w == 0 || (w == 2 && runewidth.IsAmbiguousWidth(r)) {
w = 1
}
I'm curious about this. For "normal" Unicode glyphs it doesn't seem to matter -- so it seems that it is necessary in some special cases. Should I also do this adjustment in my code (which imports termbox-go), or can I just use runewidth.RuneWidth?
I notice that there are several places in the code where it adjusts the rune width like this: w := runewidth.RuneWidth(r) if w == 0 || (w == 2 && runewidth.IsAmbiguousWidth(r)) { w = 1 } I'm curious about this. For "normal" Unicode glyphs it doesn't seem to matter -- so it seems that it is necessary in some special cases. Should I also do this adjustment in my code (which imports termbox-go), or can I just use runewidth.RuneWidth?