Skip to content

Commit 945348b

Browse files
committed
Don't count no line ending and LF
1 parent da91d7b commit 945348b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Extensions/SourceTextExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public static bool HasLFLineEndings(this SourceText text)
345345
{
346346
crlfCount++;
347347
}
348-
else
348+
else if (line.EndIncludingLineBreak != line.End)
349349
{
350350
lfCount++;
351351
}

0 commit comments

Comments
 (0)