fix resizing
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
71c4d860e3
commit
15634abaf6
5
view.go
5
view.go
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/jroimartin/gocui"
|
||||
)
|
||||
|
@ -41,8 +42,8 @@ func (m *ViewManager) Layout(g *gocui.Gui) error {
|
|||
x1, y1 := cfg.BotRight(mx, my)
|
||||
|
||||
v, err := g.SetView(cfg.Name, x0, y0, x1, y1)
|
||||
if err == nil && err != gocui.ErrUnknownView {
|
||||
return err
|
||||
if err != nil && err != gocui.ErrUnknownView {
|
||||
log.Panicln(err)
|
||||
}
|
||||
v.Title = cfg.Title
|
||||
v.Wrap = cfg.Wrap
|
||||
|
|
Loading…
Reference in New Issue