Skip to content

Commit d011db2

Browse files
committed
also allow disabling the diff provider entirely
1 parent 18dfca0 commit d011db2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

helix-view/src/document.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,9 @@ impl Document {
16181618
self.set_diff_base(self.text.clone());
16191619
}
16201620
}
1621+
DiffSource::None => {
1622+
self.diff_handle = None;
1623+
}
16211624
}
16221625

16231626
self.version_control_head = match diff_provider.get_current_head_name(path) {

helix-view/src/editor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ pub enum DiffSource {
7979
#[default]
8080
Git,
8181
File,
82+
None,
8283
}
8384

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

0 commit comments

Comments
 (0)