Skip to content

Commit 4770583

Browse files
committed
Also show already-matching relocations on hover/right click
1 parent b7ff0c9 commit 4770583

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

objdiff-core/src/diff/data.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub fn diff_data_section(
177177
}
178178
};
179179
if kind == ObjDataDiffKind::None {
180-
let mut found_any_reloc_diffs = false;
180+
let mut found_any_relocs = false;
181181
let mut left_curr_addr = left_range.start;
182182
let mut right_curr_addr = right_range.start;
183183
for (diff_kind, left_reloc, right_reloc) in diff_data_relocs_for_range(
@@ -188,10 +188,7 @@ pub fn diff_data_section(
188188
left_range.clone(),
189189
right_range.clone(),
190190
) {
191-
if diff_kind == ObjDataDiffKind::None {
192-
continue;
193-
}
194-
found_any_reloc_diffs = true;
191+
found_any_relocs = true;
195192

196193
if let Some(left_reloc) = left_reloc {
197194
let left_reloc_addr = left_reloc.address as usize;
@@ -243,7 +240,7 @@ pub fn diff_data_section(
243240
}
244241
}
245242

246-
if found_any_reloc_diffs {
243+
if found_any_relocs {
247244
if left_curr_addr < left_range.end - 1 {
248245
let len = left_range.end - left_curr_addr;
249246
let left_data = &left.data[left_curr_addr..left_range.end];

0 commit comments

Comments
 (0)