Skip to content

fix: off-by-one in commit message subject length calculation - #2596

Merged
love-linger merged 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/subject-length-boundary
Jul 31, 2026
Merged

fix: off-by-one in commit message subject length calculation#2596
love-linger merged 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/subject-length-boundary

Conversation

@JC-Chung

Copy link
Copy Markdown
Contributor

The trailing unterminated line was only counted when
lastLineStart < lastNonLineBreakCharIdx, so a 1-character line was
skipped until a second character was typed. Fixed by changing the
comparison to <=.

@love-linger love-linger self-assigned this Jul 31, 2026
@love-linger
love-linger merged commit f153843 into sourcegit-scm:develop Jul 31, 2026
14 checks passed
@love-linger love-linger added the bug Something isn't working label Jul 31, 2026
@JC-Chung
JC-Chung deleted the fix/subject-length-boundary branch July 31, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants