Renamed package onEditorPostSave event to onEditorSave for consistency (ref #166).
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -204,7 +204,7 @@ function SaveFile(editor, filePath)
|
||||
SetDocumentModified(id, false)
|
||||
SetAutoRecoveryMark()
|
||||
|
||||
PackageEventHandle("onEditorPostSave", editor)
|
||||
PackageEventHandle("onEditorSave", editor)
|
||||
|
||||
return true
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user