Display errors in config files (#2246)
* Display errors in config files * Update `CHANGELOG.md` * `clearmaps` should be a silent command
This commit is contained in:
1 parent
5cdb6edd93
commit
df06e7250e
2 files changed
+2
-12
No files matched your search
@@ -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).
|
- 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).
|
- 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).
|
- 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)
|
## [r38](https://github.com/gokcehan/lf/releases/tag/r38)
|
||||||
|
|
||||||
|
|||||||
@@ -461,10 +461,7 @@ func (e *setExpr) eval(app *app, _ []string) {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
app.ui.echoerr(err.Error())
|
app.ui.echoerr(err.Error())
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
app.ui.echo("")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *setLocalExpr) eval(app *app, _ []string) {
|
func (e *setLocalExpr) eval(app *app, _ []string) {
|
||||||
@@ -536,10 +533,7 @@ func (e *setLocalExpr) eval(app *app, _ []string) {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
app.ui.echoerr(err.Error())
|
app.ui.echoerr(err.Error())
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
app.ui.echo("")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *mapExpr) eval(app *app, _ []string) {
|
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.nkeys[e.keys] = e.expr
|
||||||
gOpts.vkeys[e.keys] = e.expr
|
gOpts.vkeys[e.keys] = e.expr
|
||||||
}
|
}
|
||||||
app.ui.echo("")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *nmapExpr) eval(app *app, _ []string) {
|
func (e *nmapExpr) eval(app *app, _ []string) {
|
||||||
@@ -559,7 +552,6 @@ func (e *nmapExpr) eval(app *app, _ []string) {
|
|||||||
} else {
|
} else {
|
||||||
gOpts.nkeys[e.keys] = e.expr
|
gOpts.nkeys[e.keys] = e.expr
|
||||||
}
|
}
|
||||||
app.ui.echo("")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *vmapExpr) eval(app *app, _ []string) {
|
func (e *vmapExpr) eval(app *app, _ []string) {
|
||||||
@@ -568,7 +560,6 @@ func (e *vmapExpr) eval(app *app, _ []string) {
|
|||||||
} else {
|
} else {
|
||||||
gOpts.vkeys[e.keys] = e.expr
|
gOpts.vkeys[e.keys] = e.expr
|
||||||
}
|
}
|
||||||
app.ui.echo("")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *cmapExpr) eval(app *app, _ []string) {
|
func (e *cmapExpr) eval(app *app, _ []string) {
|
||||||
@@ -577,7 +568,6 @@ func (e *cmapExpr) eval(app *app, _ []string) {
|
|||||||
} else {
|
} else {
|
||||||
gOpts.cmdkeys[e.key] = e.expr
|
gOpts.cmdkeys[e.key] = e.expr
|
||||||
}
|
}
|
||||||
app.ui.echo("")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *cmdExpr) eval(app *app, _ []string) {
|
func (e *cmdExpr) eval(app *app, _ []string) {
|
||||||
@@ -597,8 +587,6 @@ func (e *cmdExpr) eval(app *app, _ []string) {
|
|||||||
app.ui.screen.DisableFocus()
|
app.ui.screen.DisableFocus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
app.ui.echo("")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func preChdir(app *app) {
|
func preChdir(app *app) {
|
||||||
@@ -981,6 +969,7 @@ func (e *callExpr) eval(app *app, _ []string) {
|
|||||||
|
|
||||||
silentCmds := []string{
|
silentCmds := []string{
|
||||||
"addcustominfo",
|
"addcustominfo",
|
||||||
|
"clearmaps",
|
||||||
"draw",
|
"draw",
|
||||||
"load",
|
"load",
|
||||||
"push",
|
"push",
|
||||||
|
|||||||
Reference in new issue
Block a user