From 4dc3d376844b8343b5e44ff44eb02272bdd36e69 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Fri, 3 Oct 2025 12:19:25 +1000 Subject: [PATCH] Show error if `source` command fails (#2189) * Show error if `source` command fails * Update `CHANGELOG.md` * reword --- CHANGELOG.md | 1 + eval.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77f7178e..3b07ac0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - `shell-pipe` commands no longer wait for output if kept open after the command has finished running (#2155). - Natural sorting now compares string lengths when dealing with equivalent numbers (e.g. `0` is ordered before `00`) (#2177). - A bug where the copy progress indicator only displayed the first time a file was copied is now fixed (#2181). +- A bug where the `source` command does not show an error message upon failure is now fixed (#2189). ## [r38](https://github.com/gokcehan/lf/releases/tag/r38) diff --git a/eval.go b/eval.go index 40ca4772..bdcd6ce2 100644 --- a/eval.go +++ b/eval.go @@ -2284,6 +2284,7 @@ func (e *callExpr) eval(app *app, args []string) { "load", "push", "redraw", + "source", "sync", "tty-write", "cmd-enter",