Hi,

In LuaExtension.cxx in LuaExtension::Clear(), I think

        if (luaState) {
                CallNamedFunction("OnClear");
        }

should be at the beginning of the method, not the end. Otherwise the initial state is restored without giving the startup script a chance to clean up.

What I have is an OnClear function in one of my extension.$(file.patterns.foobar)=/path/to/script files that needs to be called when switching buffers (rereading properties) but wasn't called before my change.

I'm looking at the documentation and SciTE says scripts could implement this method to clean up after themselves, but I need to clean up specific data, not just properties as originally intended.

Does my change have any side effects?

Take care,
-Mitchell;

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to