feat(bin): Stateful hunk items can be updated

This commit is contained in:
Erik Kundt
2025-02-13 12:02:47 +01:00
parent de547fa54d
commit 16ff1380a8
+4
View File
@@ -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>);