From c3220f04f19e0aff4d9df1afe34fabbdc55c2f53 Mon Sep 17 00:00:00 2001 From: dank <35282038+d-ank@users.noreply.github.com> Date: Tue, 13 Oct 2020 00:42:25 -0400 Subject: [PATCH] added the ability to change the scrolling runes --- widgets/text/text.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/text/text.go b/widgets/text/text.go index 0712cbc..645a3db 100644 --- a/widgets/text/text.go +++ b/widgets/text/text.go @@ -125,7 +125,7 @@ const minLinesForMarkers = 3 func (t *Text) drawScrollUp(cvs *canvas.Canvas, cur image.Point, fromLine int) (bool, error) { height := cvs.Area().Dy() if cur.Y == 0 && height >= minLinesForMarkers && fromLine > 0 { - cells, err := cvs.SetCell(cur, '⇧') + cells, err := cvs.SetCell(cur, t.opts.scrollUp) if err != nil { return false, err } @@ -144,7 +144,7 @@ func (t *Text) drawScrollDown(cvs *canvas.Canvas, cur image.Point, fromLine int) height := cvs.Area().Dy() lines := len(t.wrapped) if cur.Y == height-1 && height >= minLinesForMarkers && height < lines-fromLine { - cells, err := cvs.SetCell(cur, '⇩') + cells, err := cvs.SetCell(cur, t.opts.scrollDown) if err != nil { return false, err }