mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
clear commit msg after doing a commit
This commit is contained in:
parent
1b8b58a31c
commit
8b449f5d9e
1 changed files with 3 additions and 1 deletions
|
|
@ -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<()> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue