See #535. Change on save check from editor.alive to editor.isAlive()

This commit is contained in:
Glavin Wiechert 2015-11-14 13:42:19 -04:00
parent 24b11f599e
commit 675a30c6ce
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ handleSaveEvent = ->
posArray = getCursors(editor)
origScrollTop = editor.getScrollTop()
beautifyFilePath(filePath, ->
if editor.alive and editor.alive isnt false
if editor.isAlive() is true
buffer.reload()
logger.verbose('restore editor positions', posArray,origScrollTop)
# Let the scrollTop setting run after all the save related stuff is run,