mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
enhance: remove nextPartIdx bound check
This commit is contained in:
parent
9e45a8a77d
commit
4ec93b9d75
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue