Closes #535. Do not restore editor positions if editor is destroyed.
This commit is contained in:
parent
5974036736
commit
4954dca13f
|
@ -430,6 +430,7 @@ handleSaveEvent = ->
|
|||
posArray = getCursors(editor)
|
||||
origScrollTop = editor.getScrollTop()
|
||||
beautifyFilePath(filePath, ->
|
||||
if editor.alive and editor.alive isnt false
|
||||
buffer.reload()
|
||||
logger.verbose('restore editor positions', posArray,origScrollTop)
|
||||
# Let the scrollTop setting run after all the save related stuff is run,
|
||||
|
|
Loading…
Reference in New Issue