Increase totalwidth as well for correct tab alignment

This commit is contained in:
Zachary Yedidia 2023-02-13 14:28:07 -08:00
parent d8576d0fe6
commit 3d845eefe3

View file

@ -627,6 +627,7 @@ func (w *BufWindow) displayBuffer() {
default:
if unicode.IsUpper(r) {
width = 2
totalwidth += 2
break
}
width = runewidth.RuneWidth(r)