diff --git a/CHANGELOG.md b/CHANGELOG.md index bd87507b..64cb028f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - The preview cache is now not cleared when setting `ratios` to its current value (#2218). - Filtering is fixed when using special characters in the search pattern if the `filtermethod` is `text` (#2231). - Custom commands that output messages (e.g. `cmd greet echo 'hello world'`) now display properly (#2245). +- Errors in config files are now displayed properly (#2246). ## [r38](https://github.com/gokcehan/lf/releases/tag/r38) diff --git a/eval.go b/eval.go index b5ed247b..2c322f9b 100644 --- a/eval.go +++ b/eval.go @@ -461,10 +461,7 @@ func (e *setExpr) eval(app *app, _ []string) { if err != nil { app.ui.echoerr(err.Error()) - return } - - app.ui.echo("") } func (e *setLocalExpr) eval(app *app, _ []string) { @@ -536,10 +533,7 @@ func (e *setLocalExpr) eval(app *app, _ []string) { if err != nil { app.ui.echoerr(err.Error()) - return } - - app.ui.echo("") } func (e *mapExpr) eval(app *app, _ []string) { @@ -550,7 +544,6 @@ func (e *mapExpr) eval(app *app, _ []string) { gOpts.nkeys[e.keys] = e.expr gOpts.vkeys[e.keys] = e.expr } - app.ui.echo("") } func (e *nmapExpr) eval(app *app, _ []string) { @@ -559,7 +552,6 @@ func (e *nmapExpr) eval(app *app, _ []string) { } else { gOpts.nkeys[e.keys] = e.expr } - app.ui.echo("") } func (e *vmapExpr) eval(app *app, _ []string) { @@ -568,7 +560,6 @@ func (e *vmapExpr) eval(app *app, _ []string) { } else { gOpts.vkeys[e.keys] = e.expr } - app.ui.echo("") } func (e *cmapExpr) eval(app *app, _ []string) { @@ -577,7 +568,6 @@ func (e *cmapExpr) eval(app *app, _ []string) { } else { gOpts.cmdkeys[e.key] = e.expr } - app.ui.echo("") } func (e *cmdExpr) eval(app *app, _ []string) { @@ -597,8 +587,6 @@ func (e *cmdExpr) eval(app *app, _ []string) { app.ui.screen.DisableFocus() } } - - app.ui.echo("") } func preChdir(app *app) { @@ -981,6 +969,7 @@ func (e *callExpr) eval(app *app, _ []string) { silentCmds := []string{ "addcustominfo", + "clearmaps", "draw", "load", "push",