rename showinfo option to info

Related to #39.
This commit is contained in:
Gokcehan committed 2017-02-04 21:33:36 +03:00
1 parent d605781d09
commit c55c4bf254
8 files changed
+30 -30

No files matched your search

+3 -3
View File
@@ -113,17 +113,17 @@ func (e *setExpr) eval(app *app, args []string) {
gOpts.ratios = rats
app.ui.wins = getWins()
app.ui.loadFile(app.nav)
case "showinfo":
case "info":
toks := strings.Split(e.val, ":")
for _, s := range toks {
if s != "" && s != "size" && s != "time" {
msg := "showinfo should consist of 'size' or 'time' separated with colon"
msg := "info should consist of 'size' or 'time' separated with colon"
app.ui.message = msg
log.Print(msg)
return
}
}
gOpts.showinfo = toks
gOpts.info = toks
default:
msg := fmt.Sprintf("unknown option: %s", e.opt)
app.ui.message = msg