Skip to content

Commit 388a6e6

Browse files
author
Stephan Dilly
committed
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
1 parent b552873 commit 388a6e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/commit.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ impl Component for CommitComponent {
112112
}
113113

114114
fn show(&mut self) -> Result<()> {
115+
if self.amend.is_some() {
116+
self.input.clear();
117+
}
115118
self.amend = None;
116119

117-
self.input.clear();
118120
self.input
119121
.set_title(strings::commit_title(&self.key_config));
120122
self.input.show()?;

0 commit comments

Comments
 (0)