plugins: Run deinit() on exit() of micro - #4231
Conversation
The screen is usually closed with `exit()`. This was overseen in commit e15bb88 (micro-editor#3273).
This allows plugins to do some cleanup short before micro is exited.
|
The idea seems reasonable. Although I'm a bit concerned that there might be some plugins that are using Trying to find out what was the original use case for this Possibly |
|
If current behaviour needs to be maintained, then a new at-exit cleanup hook plus documentation of exactly what fires when would seem appropriate. But, if there are really no plugins out there that have one, go for it. It isn't unreasonable for plugins to receive |
Yeah, I agree with that. |
This came up with #4230 and allows plugins to do some finalization stuff.