enhance: remove nextPartIdx bound check

This commit is contained in:
leo 2024-06-08 14:45:18 +08:00
parent 9e45a8a77d
commit 4ec93b9d75

View file

@ -51,13 +51,13 @@ namespace SourceGit.Commands
break;
case 7:
_current.Subject = line;
nextPartIdx = -1;
break;
default:
break;
}
nextPartIdx++;
if (nextPartIdx == 8) nextPartIdx = 0;
start = end + 1;
end = rs.StdOut.IndexOf('\n', start);