diff --git a/_demos/demo2.go b/_demos/demo2.go index a254f57..c084b39 100644 --- a/_demos/demo2.go +++ b/_demos/demo2.go @@ -78,7 +78,7 @@ func getLine(g *gocui.Gui, v *gocui.View) error { _, cy := v.Cursor() if l, err = v.Line(cy); err != nil { - return err + l = "" } maxX, maxY := g.Size() diff --git a/gui.go b/gui.go index 61a8a55..c0d2bf7 100644 --- a/gui.go +++ b/gui.go @@ -151,7 +151,7 @@ func (g *Gui) SetCurrentView(name string) error { return ErrorUnkView } -// Current View returns the currently focused view, or nil if no view +// CurrentView returns the currently focused view, or nil if no view // owns the focus. func (g *Gui) CurrentView() *View { return g.currentView