Add test for go-to hunk and fix discovered bugs
This commit is contained in:
parent
ae2021e073
commit
8361b4d47a
8 changed files with 145 additions and 72 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue