diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2018-09-01 15:02:12 +0200 |
---|---|---|
committer | Dawid Dziurla <dawidd0811@gmail.com> | 2018-09-03 17:54:06 +0200 |
commit | 5177e458efa8e647c34f7cee65450c68a5595784 (patch) | |
tree | a112c81a306a8306c96799776eb61146b04029c2 /pkg/gui | |
parent | 314c8c279aa9b29649cc5d12b803d33f8a8bef96 (diff) |
use Fprint instead of renderString
renderString is wrapping content
because of that lines are being select wrong
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/help_panel.go | 4 |
1 files changed, 1 insertions, 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") |