fix: cant switch btwn files in diff view

This commit is contained in:
2026-06-07 00:16:34 +01:00
parent 016b499cb0
commit be83a0b352
2 changed files with 4 additions and 0 deletions

View File

@@ -75,6 +75,9 @@ impl DiffViewState {
pub(crate) fn reset(&mut self, line_count: usize) {
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(

View File

@@ -85,6 +85,7 @@ impl PullRequestDiffView {
cx: &mut gpui::Context<Self>,
) {
self.current_file_path = Some(Arc::clone(file_path));
self.content_diff_query = None;
self.start_content_queries(cx);
}