Skip to content

Commit 8b449f5

Browse files
author
Stephan Dilly
committed
clear commit msg after doing a commit
1 parent 1b8b58a commit 8b449f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/commit.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ impl CommitComponent {
226226
}
227227

228228
fn commit(&mut self) -> Result<()> {
229-
self.commit_msg(self.input.get_text().clone())
229+
let msg = self.input.get_text().clone();
230+
self.input.clear();
231+
self.commit_msg(msg)
230232
}
231233

232234
fn commit_msg(&mut self, msg: String) -> Result<()> {

0 commit comments

Comments
 (0)