Skip to content

Commit

Permalink
also allow disabling the diff provider entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Sep 1, 2023
1 parent 38b21b3 commit de32e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helix-view/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,9 @@ impl Document {
}
}
}
DiffSource::None => {
self.diff_handle = None;
}
}

self.version_control_head = match diff_provider.get_current_head_name(path) {
Expand Down
1 change: 1 addition & 0 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ pub enum DiffSource {
#[default]
Git,
File,
None,
}

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
Expand Down

0 comments on commit de32e18

Please sign in to comment.