enhance: trim description of commit message while pasting on subject

This commit is contained in:
leo 2024-07-31 21:36:23 +08:00
parent ff8456bcba
commit 2a05ffa30f
No known key found for this signature in database

View file

@ -146,7 +146,7 @@ namespace SourceGit.Views
SubjectEditor.Paste(text.Substring(0, idx));
DescriptionEditor.Focus();
DescriptionEditor.CaretIndex = 0;
DescriptionEditor.Paste(text.Substring(idx + 1) + "\n");
DescriptionEditor.Paste(text.Substring(idx + 1).Trim());
}
}
else