Skip to content

Commit 73e5490

Browse files
Another small fix
1 parent 798cf17 commit 73e5490

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/text-buffer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,9 @@ class TextBuffer {
568568
//
569569
// Returns a {Boolean}.
570570
isInConflict () {
571-
return this.isModified() && this.fileHasChangedSinceLastLoad
571+
// Deleted files are automatically in conflict if they consider themselves
572+
// modified.
573+
return this.isModified() && (this.fileHasChangedSinceLastLoad || this.isDeleted())
572574
}
573575

574576
// Public: Get the path of the associated file.

0 commit comments

Comments
 (0)