Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat(bin): Stateful hunk items can be updated
Erik Kundt committed 1 year ago
commit 16ff1380a833c46b1be889c9440281c1a97aee4f
parent de547fa54d3ffe886237b48d6383988fa7f1d931
1 file changed +4 -0
modified bin/ui/items.rs
@@ -1607,6 +1607,10 @@ impl<'a> StatefulHunkItem<'a> {
    pub fn state(&self) -> &HunkState {
        &self.1
    }
+

+
    pub fn update_state(&mut self, state: &HunkState) {
+
        self.1 = state.clone();
+
    }
}

pub struct HighlightedLine<'a>(Line<'a>);