mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -05:00
Add Buffer.isEmpty()
To be used by Buffer.isModified() for when the buffer has no backing file
This commit is contained in:
@@ -244,10 +244,12 @@ class Buffer
|
||||
if @file
|
||||
@memoryContentSignature != @diskContentSignature
|
||||
else
|
||||
@lines.length > 1 or @lines[0]
|
||||
not @isEmpty()
|
||||
|
||||
isInConflict: -> @conflict
|
||||
|
||||
isEmpty: -> @lines.length is 1 and @lines[0].length is 0
|
||||
|
||||
getAnchors: -> new Array(@anchors...)
|
||||
|
||||
addAnchor: (options) ->
|
||||
|
||||
Reference in New Issue
Block a user