瀏覽代碼

Fix code logic issues

main
nooooooom 1 年之前
committed by Eric Amodio
父節點
當前提交
840a5f8fb4
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/git/parsers/diffParser.ts

+ 2
- 2
src/git/parsers/diffParser.ts 查看文件

@ -23,8 +23,8 @@ export function parseGitFileDiff(data: string, includeContents = false): GitDiff
// Skip header
let i = -1;
while (i < lines.length) {
if (lines[++i].startsWith('@@')) {
while (++i < lines.length) {
if (lines[i].startsWith('@@')) {
break;
}
}

Loading…
取消
儲存