From 50c6562492d2a64a940ede089a6b15882ed3bd27 Mon Sep 17 00:00:00 2001 From: tommady Date: Thu, 30 Jan 2025 00:30:20 +0800 Subject: [PATCH] fix: File selector should jump back and highlight unstaged files (#2499) Co-authored-by: extrawurst --- CHANGELOG.md | 3 +++ src/popups/commit.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05823362..b764154d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Changed +* After commit: jump back to unstaged area [[@tommady](https://github.com/tommady)] ([#2476](https://github.com/extrawurst/gitui/issues/2476)) + ## [0.27.0] - 2024-01-14 **new: manage remotes** diff --git a/src/popups/commit.rs b/src/popups/commit.rs index 0b9a1958..4dcfc324 100644 --- a/src/popups/commit.rs +++ b/src/popups/commit.rs @@ -218,6 +218,7 @@ impl CommitPopup { self.hide(); self.queue.push(InternalEvent::Update(NeedsUpdate::ALL)); + self.queue.push(InternalEvent::StatusLastFileMoved); self.input.clear(); }