NppEventExec icon indicating copy to clipboard operation
NppEventExec copied to clipboard

Break trigger event

Open TMDevel89 opened this issue 4 years ago • 1 comments

Is there a possibility in the script to cancel the triggered event?

For example: Event BeforeSave is triggered, Script A is called, Script A checks condition, condition is false > Script A aborts the save process

TMDevel89 avatar Dec 24 '20 10:12 TMDevel89

No, this is also controlled by Notepad++ and I believe well outside the scope of the plugin API. It could be emulated by saving the previous content and restoring it if the script decides so.

MIvanchev avatar Dec 24 '20 11:12 MIvanchev