mirror of https://github.com/jroimartin/gocui.git
Fix typo in documentation. Minor fix in demo2
This commit is contained in:
parent
46b1452e71
commit
553b48c903
|
@ -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
2
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
|
||||
|
|
Loading…
Reference in New Issue