From 622d8c90bdccd12e9c6e18d8b9de4ae5e0301d88 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Sat, 28 Mar 2026 17:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B6=88=E6=81=AF=E9=87=8C?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=B7=A5=E5=85=B7=E4=BB=A3=E7=A0=81=E8=A1=8C?= =?UTF-8?q?=E5=8F=B7diff=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/parsers/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/parsers/mod.rs b/src-tauri/src/parsers/mod.rs index a01ac55..4eecef4 100644 --- a/src-tauri/src/parsers/mod.rs +++ b/src-tauri/src/parsers/mod.rs @@ -564,7 +564,7 @@ fn find_hunk_position( .map(|l| &l[1..]) .collect(); if let Some(pos) = find_contiguous(file_lines, &new_view) { - return Some((pos + 1, new_count, new_count)); + return Some((pos + 1, old_count, new_count)); } // Strategy 2: contiguous match of context+deleted (pre-patch)