From 553b48c90379655d1078648b4f5108b2722c3d2c Mon Sep 17 00:00:00 2001 From: "Roi Martin (@nibble_ds)" Date: Mon, 27 Jan 2014 22:50:02 +0100 Subject: [PATCH] Fix typo in documentation. Minor fix in demo2 --- _demos/demo2.go | 2 +- gui.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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