fix: target caret excerpts and retain diff viewport offsets

This commit is contained in:
2026-10-11 10:50:54 +02:00
parent 86d22d4fa2
commit 976cfc9e62
5 changed files with 237 additions and 4 deletions
+11
View File
@@ -258,6 +258,17 @@ impl EditorSession {
&self.editor
}
pub(crate) fn set_diff_viewport(
&mut self,
comparison_id: u64,
file: usize,
top: usize,
left_after: usize,
) {
self.editor
.set_diff_viewport(comparison_id, file, top, left_after);
}
pub(crate) fn scroll_diff(&mut self, focus: Focus, down: bool) {
self.editor.scroll_diff(focus, down);
}