diff --git a/src/components/commit.rs b/src/components/commit.rs index 13a09f38..3678e487 100644 --- a/src/components/commit.rs +++ b/src/components/commit.rs @@ -112,9 +112,11 @@ impl Component for CommitComponent { } fn show(&mut self) -> Result<()> { + if self.amend.is_some() { + self.input.clear(); + } self.amend = None; - self.input.clear(); self.input .set_title(strings::commit_title(&self.key_config)); self.input.show()?;