clear commit msg after doing a commit

This commit is contained in:
Stephan Dilly 2021-02-24 10:21:10 +01:00
parent 1b8b58a31c
commit 8b449f5d9e

View file

@ -226,7 +226,9 @@ impl CommitComponent {
}
fn commit(&mut self) -> Result<()> {
self.commit_msg(self.input.get_text().clone())
let msg = self.input.get_text().clone();
self.input.clear();
self.commit_msg(msg)
}
fn commit_msg(&mut self, msg: String) -> Result<()> {