src

Go monorepo.
Log | Files | Refs

commit 88362904ec240a63a840ce25f88a91a92e0718a4
parent a51ac094092094aef68e277bbbf114b75578a8fa
Author: dwrz <dwrz@dwrz.net>
Date:   Thu,  8 Dec 2022 15:19:48 +0000

Fix wen statusbar cursor

Diffstat:
Mpkg/editor/render.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/editor/render.go b/pkg/editor/render.go @@ -20,6 +20,7 @@ func (e *Editor) render(msg *Message) error { var ( buf bytes.Buffer + cursor = e.active.Cursor() bars = 2 height = int(size.Rows) - bars width = int(size.Columns) @@ -39,7 +40,7 @@ func (e *Editor) render(msg *Message) error { // Draw the status bar. buf.Write([]byte(terminal.EraseLine)) - buf.WriteString(e.statusBar(width, output.Line, output.Glyph)) + buf.WriteString(e.statusBar(width, cursor.Line(), cursor.Glyph())) buf.WriteString("\r\n") // Draw the message bar.