Skip to content

Commit

Permalink
fix(ad): only blocking exit when kind==file buffers are dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
sminez committed Sep 15, 2024
1 parent 3a4ff71 commit 66fbefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buffer/buffers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl Buffers {
pub fn dirty_buffers(&self) -> Vec<String> {
self.inner
.iter()
.filter(|b| b.dirty)
.filter(|b| b.dirty && matches!(b.kind, BufferKind::File(_)))
.map(|b| b.full_name().to_string())
.collect()
}
Expand Down

0 comments on commit 66fbefe

Please sign in to comment.