From fbf46ebcba59fbea45b4853176d134744ff40a2b Mon Sep 17 00:00:00 2001 From: erroneousboat Date: Sat, 6 Apr 2019 17:51:19 +0200 Subject: [PATCH] Fix visible cursor --- components/channels.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/channels.go b/components/channels.go index 29f6a97..007d385 100644 --- a/components/channels.go +++ b/components/channels.go @@ -155,9 +155,9 @@ func (c *Channels) Buffer() termui.Buffer { } // When not at the end of the pane fill it up empty characters - for x < c.List.InnerBounds().Max.X-1 { + for x < c.List.InnerBounds().Max.X { if y == c.CursorPosition { - buf.Set(x+1, y, + buf.Set(x, y, termui.Cell{ Ch: ' ', Fg: c.List.ItemBgColor, @@ -166,7 +166,7 @@ func (c *Channels) Buffer() termui.Buffer { ) } else { buf.Set( - x+1, y, + x, y, termui.Cell{ Ch: ' ', Fg: c.List.ItemFgColor,