cleanup
This commit is contained in:
parent
dbb4220084
commit
7a851f6c72
2
nav.go
2
nav.go
@ -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)
|
||||||
|
4
opts.go
4
opts.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user