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: default:
if unicode.IsUpper(r) { if unicode.IsUpper(r) {
width = 2 width = 2
totalwidth += 2
break break
} }
width = runewidth.RuneWidth(r) width = runewidth.RuneWidth(r)