Add docs for buffer.rs
Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
ebe2c3658c
commit
6457ccf9ec
6 changed files with 194 additions and 39 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue