diff --git a/src/Views/CommitMessageToolBox.axaml.cs b/src/Views/CommitMessageToolBox.axaml.cs index 214f7fd8b..90128444f 100644 --- a/src/Views/CommitMessageToolBox.axaml.cs +++ b/src/Views/CommitMessageToolBox.axaml.cs @@ -243,7 +243,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang } } - if (lastLineStart < lastNonLineBreakCharIdx) + if (lastLineStart <= lastNonLineBreakCharIdx) { var validCharLen = text.Substring(lastLineStart).TrimEnd().Length; if (subjectLen > 0)