mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
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:
parent
b552873d95
commit
388a6e62fb
1 changed files with 3 additions and 1 deletions
|
|
@ -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()?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue