1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-02 09:21:40 +02:00

use Fprint instead of renderString

renderString is wrapping content
because of that lines are being select wrong
This commit is contained in:
Dawid Dziurla 2018-09-01 15:02:12 +02:00
parent 314c8c279a
commit 5177e458ef
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -84,9 +84,7 @@ func (gui *Gui) handleHelp(g *gocui.Gui, v *gocui.View) error {
content += "third\n" content += "third\n"
*/ */
if err := gui.renderString(g, "help", content); err != nil { fmt.Fprint(helpView, content)
return err
}
g.Update(func(g *gocui.Gui) error { g.Update(func(g *gocui.Gui) error {
_, err := g.SetViewOnTop("help") _, err := g.SetViewOnTop("help")