diff --git a/packages/sample.lua b/packages/sample.lua index 731b7f8403..b40c15bad5 100644 --- a/packages/sample.lua +++ b/packages/sample.lua @@ -21,7 +21,7 @@ local events = { onEditorClose = function(self, editor) end, onEditorNew = function(self, editor) end, onEditorPreSave = function(self, editor, filepath) end, -- return false - onEditorPostSave = function(self, editor) end, + onEditorSave = function(self, editor) end, onEditorFocusLost = function(self, editor) end, onEditorFocusSet = function(self, editor) end, onEditorKeyDown = function(self, editor, event) end, -- return false diff --git a/src/editor/commands.lua b/src/editor/commands.lua index db96892c79..4a9d2c4082 100644 --- a/src/editor/commands.lua +++ b/src/editor/commands.lua @@ -204,7 +204,7 @@ function SaveFile(editor, filePath) SetDocumentModified(id, false) SetAutoRecoveryMark() - PackageEventHandle("onEditorPostSave", editor) + PackageEventHandle("onEditorSave", editor) return true else