fix: cant switch btwn files in diff view
This commit is contained in:
@@ -75,6 +75,9 @@ impl DiffViewState {
|
|||||||
|
|
||||||
pub(crate) fn reset(&mut self, line_count: usize) {
|
pub(crate) fn reset(&mut self, line_count: usize) {
|
||||||
self.0.borrow().list_state.reset(line_count);
|
self.0.borrow().list_state.reset(line_count);
|
||||||
|
let mut state = self.0.borrow_mut();
|
||||||
|
state.old_side_highlights = None;
|
||||||
|
state.new_side_highlights = None;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn old_side_highlights(
|
pub(crate) fn old_side_highlights(
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ impl PullRequestDiffView {
|
|||||||
cx: &mut gpui::Context<Self>,
|
cx: &mut gpui::Context<Self>,
|
||||||
) {
|
) {
|
||||||
self.current_file_path = Some(Arc::clone(file_path));
|
self.current_file_path = Some(Arc::clone(file_path));
|
||||||
|
self.content_diff_query = None;
|
||||||
self.start_content_queries(cx);
|
self.start_content_queries(cx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user