Fix typo in documentation. Minor fix in demo2

This commit is contained in:
Roi Martin (@nibble_ds) 2014-01-27 22:50:02 +01:00
parent 46b1452e71
commit 553b48c903
2 changed files with 2 additions and 2 deletions

View File

@ -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()

2
gui.go
View File

@ -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