This commit is contained in:
Gokcehan 2016-10-02 01:14:55 +03:00
parent dbb4220084
commit 7a851f6c72
2 changed files with 2 additions and 4 deletions

2
nav.go
View File

@ -131,7 +131,7 @@ func newDir(path string) *Dir {
func (dir *Dir) renew(height int) { func (dir *Dir) renew(height int) {
fi, err := ioutil.ReadDir(dir.path) fi, err := ioutil.ReadDir(dir.path)
if err != nil { if err != nil {
log.Print("reading directory: %s", err) log.Printf("reading directory: %s", err)
} }
fi = organizeFiles(fi) fi = organizeFiles(fi)

View File

@ -1,6 +1,6 @@
package main package main
type Opts struct { var gOpts struct {
hidden bool hidden bool
preview bool preview bool
scrolloff int scrolloff int
@ -15,8 +15,6 @@ type Opts struct {
cmds map[string]Expr cmds map[string]Expr
} }
var gOpts Opts
func init() { func init() {
gOpts.hidden = false gOpts.hidden = false
gOpts.preview = true gOpts.preview = true