Sorry to be a pest, but I suspect that you might have marked the wrong bug fixed...
I submitted two bugs one about folding levels which had it's Resolution set as none, but seems to have been fixed in 2.20, and one about OnClose not being called on open buffers if SciTE is closed down which is marked as Fixed but is still not working in version 2.20
The attached test.lua file contains an OnClose function that if test.lua is set as the startup script, should create a file called close.txt in your home directory (you will have to change /home/william/close.txt to where you want to create the file signifying that OnClose was called) when OnClose is called.
If you close a buffer with Ctrl+W or Close on the File Menu then close.txt is created - OnClose was called. If you somply shut down SciTE (by Alt+F4, or clicking on the close icon in the top corner of the window - left or right depending on your OS and desktop) then close.txt is not created indicating that OnClose was not called for any of the buffers open in SciTE when it was closed.
I assume that this is a bug that SciTE doesn't call OnClose under this circumstance - otherwise how can you tell if a buffer is being closed if some closeing events are not captured?
Log in to post a comment.