mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
Add Buffer.reload()
This commit is contained in:
@@ -33,6 +33,11 @@ class Buffer
|
||||
destroy: ->
|
||||
@file?.off()
|
||||
|
||||
reload: ->
|
||||
@setText(fs.read(@file.getPath()))
|
||||
@modified = false
|
||||
@modifiedOnDisk = false
|
||||
|
||||
getPath: ->
|
||||
@file?.getPath()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user