cleanup
This commit is contained in:
parent
f8daa60b31
commit
a6544757db
6
eval.go
6
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user