mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-05-01 06:15:41 +08:00
enhance: trim description of commit message while pasting on subject
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user