Add test for go-to hunk and fix discovered bugs

This commit is contained in:
Julia 2022-10-28 15:07:53 -04:00
parent ae2021e073
commit 8361b4d47a
8 changed files with 145 additions and 72 deletions

View file

@ -681,7 +681,7 @@ impl Buffer {
self.diff_base.as_deref()
}
pub fn update_diff_base(&mut self, diff_base: Option<String>, cx: &mut ModelContext<Self>) {
pub fn set_diff_base(&mut self, diff_base: Option<String>, cx: &mut ModelContext<Self>) {
self.diff_base = diff_base;
self.git_diff_recalc(cx);
}