Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
feat(bin): Stateful hunk items can be updated
Erik Kundt committed 1 year ago
commit 16ff1380a833c46b1be889c9440281c1a97aee4f
parent de547fa
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>);