diff options
author | Pascal Kuthe | 2023-03-08 01:49:14 +0000 |
---|---|---|
committer | GitHub | 2023-03-08 01:49:14 +0000 |
commit | 48b6aa9a699df0680a6d31e9611ebd1ca9909de4 (patch) | |
tree | 11459e49578000678f494857cfbe1f60bfe2ba20 /helix-view | |
parent | 8c2e447b16e4d11db411b18f2fbe3ac2bc031d89 (diff) |
Add command for resetting diff hunks (#5736)
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/gutter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/gutter.rs b/helix-view/src/gutter.rs index cb9e4333..36e8e16a 100644 --- a/helix-view/src/gutter.rs +++ b/helix-view/src/gutter.rs @@ -100,7 +100,7 @@ pub fn diff<'doc>( let deleted = theme.get("diff.minus"); let modified = theme.get("diff.delta"); if let Some(diff_handle) = doc.diff_handle() { - let hunks = diff_handle.hunks(); + let hunks = diff_handle.load(); let mut hunk_i = 0; let mut hunk = hunks.nth_hunk(hunk_i); Box::new( |