From 5177e458efa8e647c34f7cee65450c68a5595784 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sat, 1 Sep 2018 15:02:12 +0200 Subject: [PATCH] use Fprint instead of renderString renderString is wrapping content because of that lines are being select wrong --- pkg/gui/help_panel.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/gui/help_panel.go b/pkg/gui/help_panel.go index 1a93d1c53..02c601e8c 100644 --- a/pkg/gui/help_panel.go +++ b/pkg/gui/help_panel.go @@ -84,9 +84,7 @@ func (gui *Gui) handleHelp(g *gocui.Gui, v *gocui.View) error { content += "third\n" */ - if err := gui.renderString(g, "help", content); err != nil { - return err - } + fmt.Fprint(helpView, content) g.Update(func(g *gocui.Gui) error { _, err := g.SetViewOnTop("help")