8000 Fix off-by-one error in BlameHunk debugger display · apfunk/libgit2sharp@1517a66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1517a66

Browse files
committed
Fix off-by-one error in BlameHunk debugger display
1 parent b8dc660 commit 1517a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/BlameHunk.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private string DebuggerDisplay
113113
return string.Format(CultureInfo.InvariantCulture,
114114
"{0}-{1} ({2})",
115115
FinalStartLineNumber,
116-
FinalStartLineNumber+LineCount,
116+
FinalStartLineNumber+LineCount-1,
117117
FinalCommit.ToString().Substring(0,7));
118118
}
119119
}

0 commit comments

Comments
 (0)
0