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; break;
case 7: case 7:
_current.Subject = line; _current.Subject = line;
nextPartIdx = -1;
break; break;
default: default:
break; break;
} }
nextPartIdx++; nextPartIdx++;
if (nextPartIdx == 8) nextPartIdx = 0;
start = end + 1; start = end + 1;
end = rs.StdOut.IndexOf('\n', start); end = rs.StdOut.IndexOf('\n', start);