mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-30 00:24:59 +00:00
refactor: rewrite the way reading full message of commit
This commit is contained in:
parent
a99bd2e973
commit
751991c816
2 changed files with 11 additions and 8 deletions
|
@ -95,7 +95,7 @@ namespace SourceGit.Views
|
|||
if (change.Property == TextProperty && _changingWay == TextChangeWay.None)
|
||||
{
|
||||
_changingWay = TextChangeWay.FromSource;
|
||||
var normalized = Text.ReplaceLineEndings("\n").Trim();
|
||||
var normalized = Text.ReplaceLineEndings("\n");
|
||||
var subjectEnd = normalized.IndexOf("\n\n", StringComparison.Ordinal);
|
||||
if (subjectEnd == -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue