Add docs for buffer.rs

Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
Max Brunsfeld 2024-01-17 10:08:42 -08:00
parent ebe2c3658c
commit 6457ccf9ec
6 changed files with 194 additions and 39 deletions

View file

@ -3023,7 +3023,7 @@ impl MultiBufferSnapshot {
pub fn has_git_diffs(&self) -> bool {
for excerpt in self.excerpts.iter() {
if !excerpt.buffer.git_diff.is_empty() {
if excerpt.buffer.has_git_diff() {
return true;
}
}