keep uncommitted msg around.

when adding *amend* this got broken because in that case we want to clear out the msg when it was not confirmed
This commit is contained in:
Stephan Dilly 2021-02-23 11:21:45 +01:00
parent b552873d95
commit 388a6e62fb

View file

@ -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()?;