mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-29 06:20:28 +08:00
feat(bin): Stateful hunk items can be updated
This commit is contained in:
@@ -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>);
|
||||
|
||||
Reference in New Issue
Block a user