From a6544757db4bb66ba0b75f4950caeabe2f64fedd Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Mon, 20 Jul 2020 00:44:37 +0300 Subject: [PATCH] cleanup --- eval.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eval.go b/eval.go index ec30b2e..a20c192 100644 --- a/eval.go +++ b/eval.go @@ -233,7 +233,7 @@ func (e *setExpr) eval(app *app, args []string) { toks := strings.Split(e.val, ":") for _, s := range toks { if s == "" { - app.ui.echoerrf("hiddenfiles: glob should be non-empty") + app.ui.echoerr("hiddenfiles: glob should be non-empty") return } _, err := filepath.Match(s, "a") @@ -315,8 +315,8 @@ func (e *setExpr) eval(app *app, args []string) { case "timefmt": gOpts.timefmt = e.val case "truncatechar": - if runeSliceWidth([]rune(e.val)) > 1 { - app.ui.echoerr("truncatechar: value should be 1 character long") + if runeSliceWidth([]rune(e.val)) != 1 { + app.ui.echoerr("truncatechar: value should be a single character") return }