Minor fix to tab size

This commit is contained in:
Zachary Yedidia
2017-02-24 21:06:03 -05:00
parent f197eca320
commit a095644731

View File

@@ -118,11 +118,9 @@ func (c *CellView) Draw(buf *Buffer, top, height, left, width int) {
if char == '\t' {
if viewCol >= 0 {
c.lines[viewLine][viewCol].drawChar = indentchar
viewCol += tabsize - viewCol%tabsize
} else {
viewCol += tabsize
}
// viewCol += tabsize
viewCol += tabsize - (viewCol+left)%tabsize
} else if runewidth.RuneWidth(char) > 1 {
viewCol += runewidth.RuneWidth(char)
} else {