From 7a851f6c720380a6b9f715542906a56334e7e98b Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sun, 2 Oct 2016 01:14:55 +0300 Subject: [PATCH] cleanup --- nav.go | 2 +- opts.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/nav.go b/nav.go index e40d2bc..be944fd 100644 --- a/nav.go +++ b/nav.go @@ -131,7 +131,7 @@ func newDir(path string) *Dir { func (dir *Dir) renew(height int) { fi, err := ioutil.ReadDir(dir.path) if err != nil { - log.Print("reading directory: %s", err) + log.Printf("reading directory: %s", err) } fi = organizeFiles(fi) diff --git a/opts.go b/opts.go index 0e07fc6..c16521e 100644 --- a/opts.go +++ b/opts.go @@ -1,6 +1,6 @@ package main -type Opts struct { +var gOpts struct { hidden bool preview bool scrolloff int @@ -15,8 +15,6 @@ type Opts struct { cmds map[string]Expr } -var gOpts Opts - func init() { gOpts.hidden = false gOpts.preview = true