draw unformatted text

This commit is contained in:
Dongdong Zhou 2018-09-27 18:09:15 +01:00
parent 40476234d1
commit ea59079933
1 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,8 @@ func (b *Buffer) drawLine(painter *gui.QPainter, font *Font, index int, y int, p
fg := b.editor.theme.Theme.Foreground
color.SetRgb(fg.R, fg.G, fg.B, fg.A)
painter.SetPen2(color)
painter.DrawText3(padding, y+int(font.shift), line.text)
text := strings.Replace(string(line.text), "\t", b.tabStr, -1)
painter.DrawText3(padding, y+int(font.shift), text)
}
}