|
@@ -54,8 +54,8 @@ func (p *Panel) RightBottomPos() (rx, by int) {
|
|
rx = p.X + p.Width
|
|
rx = p.X + p.Width
|
|
by = p.Y + len(p.Lines)
|
|
by = p.Y + len(p.Lines)
|
|
if p.HasBorder() {
|
|
if p.HasBorder() {
|
|
- rx += 2
|
|
|
|
- by += 2
|
|
|
|
|
|
+ rx += 1
|
|
|
|
+ by += 1
|
|
}
|
|
}
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -236,7 +236,7 @@ func (p *Panel) UpdateLine(index int) string {
|
|
// Position Cursor at the "end" of the panel
|
|
// Position Cursor at the "end" of the panel
|
|
func (p *Panel) GotoEnd() string {
|
|
func (p *Panel) GotoEnd() string {
|
|
rx, by := p.RightBottomPos()
|
|
rx, by := p.RightBottomPos()
|
|
- return Goto(rx, by)
|
|
|
|
|
|
+ return Goto(rx + 1, by)
|
|
}
|
|
}
|
|
|
|
|
|
// Is the top line of this style a single line?
|
|
// Is the top line of this style a single line?
|