Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Fix hunk line ranges
Alexis Sellier committed 1 year ago
commit 1388601cb627d4fcf8a401f83bd4b2b4a1436481
parent 605388f850d54ff4472ae326199d803514e691ff
1 file changed +2 -2
modified radicle-cli/src/git/unified_diff.rs
@@ -132,13 +132,13 @@ impl HunkHeader {
    pub fn old_line_range(&self) -> std::ops::Range<u32> {
        let start: u32 = self.old_line_no;
        let end: u32 = self.old_line_no + self.old_size;
-
        start..end
+
        start..end + 1
    }

    pub fn new_line_range(&self) -> std::ops::Range<u32> {
        let start: u32 = self.new_line_no;
        let end: u32 = self.new_line_no + self.new_size;
-
        start..end
+
        start..end + 1
    }
}