mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Treat file-less buffers as unmodified when empty
This commit is contained in:
@@ -241,7 +241,10 @@ class Buffer
|
||||
@trigger 'after-save'
|
||||
|
||||
isModified: ->
|
||||
@memoryContentSignature != @diskContentSignature
|
||||
if @file
|
||||
@memoryContentSignature != @diskContentSignature
|
||||
else
|
||||
@lines.length > 1 or @lines[0]
|
||||
|
||||
isInConflict: -> @conflict
|
||||
|
||||
|
||||
Reference in New Issue
Block a user