mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 19:18:57 +00:00
Update of text stats calculation
Do not interpret 0x85 as Next Line (NEL) char when gathering statistics for a text file.
This commit is contained in:
parent
7ae73e94db
commit
c902f5a0ff
@ -33,10 +33,6 @@ void git_text_gather_stats(git_text_stats *stats, const git_buf *text)
|
|||||||
else if (c == '\n')
|
else if (c == '\n')
|
||||||
stats->lf++;
|
stats->lf++;
|
||||||
|
|
||||||
else if (c == 0x85)
|
|
||||||
/* Unicode CR+LF */
|
|
||||||
stats->crlf++;
|
|
||||||
|
|
||||||
else if (c == 127)
|
else if (c == 127)
|
||||||
/* DEL */
|
/* DEL */
|
||||||
stats->nonprintable++;
|
stats->nonprintable++;
|
||||||
|
Loading…
Reference in New Issue
Block a user