mitchell wrote:
Hi,
Hi, I use the lua code above in SciTE all of the time. Now since
upgrading to 1.74, the code doesn't work. What do I need to change in
order for this to work in Version 1.74 (with lua5.1?)
I suspect it has to do with OnClear. It now is called *before* the Lua
global namespace is reinitialized, giving scripts a chance to "clean up
after themselves" as in the documentation. The way it behaved originally
was to be called *after* the global namespace was reinitialized.
Therefore a more accurate name would be OnReload or something, not OnClear.
Anyway, just calling udl_Initialize at the end of the script should
work, provided the script is in or called by the extension script. There
is absolutely no need for OnClear as far as I can tell.
Thanks, I did finally get this to working by initializing
udl_Initialize() at the start of the function called first in the
command and removing the OnClear function.
function OtherTools()
udl_Initialize() --< added here
editor:GrabFocus()
editorAutoCSeparator = editor.AutoCSeparator
...
...
...
end
command.name.47.*=Tools
command.47.*=OtherTools
command.shortcut.47.*=Ctrl+T
...
...
--
Thanks!
Doyle Whisenant
[EMAIL PROTECTED]
_______________________________________________
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest