1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-28 09:08:41 +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"
*/
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")