add missing characters

This commit is contained in:
Yasuhiro Matsumoto 2017-07-17 19:24:37 +09:00
parent 72304ddb9b
commit 6d9a109edf
2 changed files with 8 additions and 2 deletions

View File

@ -12,3 +12,9 @@ const HORIZONTAL_LINE = '-'
const TOP_LEFT = '+'
const BOTTOM_RIGHT = '+'
const BOTTOM_LEFT = '+'
const VERTICAL_LEFT = '+'
const VERTICAL_RIGHT = '+'
const HORIZONTAL_DOWN = '+'
const HORIZONTAL_UP = '+'
const QUOTA_LEFT = '<'
const QUOTA_RIGHT = '>'

View File

@ -231,7 +231,7 @@ func (tp *Tabpane) Buffer() Buffer {
ps = append(ps, pt)
if all <= 0 {
addp := tp.drawPointWithBorder(pt, '<', '«', HORIZONTAL_LINE, HORIZONTAL_LINE)
addp := tp.drawPointWithBorder(pt, '<', QUOTA_LEFT, HORIZONTAL_LINE, HORIZONTAL_LINE)
ps = append(ps, addp...)
}
@ -242,7 +242,7 @@ func (tp *Tabpane) Buffer() Buffer {
}
ps = append(ps, pt)
if all >= 0 {
addp := tp.drawPointWithBorder(pt, '>', '»', HORIZONTAL_LINE, HORIZONTAL_LINE)
addp := tp.drawPointWithBorder(pt, '>', QUOTA_RIGHT, HORIZONTAL_LINE, HORIZONTAL_LINE)
ps = append(ps, addp...)
}
}