Neil Hodgson wrote:
I don't see this happening. SciTE realises that the file is already open and switches to it. Possibly you need to use the full paths like this:function open_cpp_or_h() ext = string.lower(props.FileExt) if ext == "cpp" then scite.Open(string.gsub(props.FilePath, ".cpp$", ".h")) else scite.Open(string.gsub(props.FilePath, ".h$", ".cpp")) end end
That was the problem. Everything works perfectly now. Thank you very much.
OnClose would be sensible but it is up to someone that wants the feature to write the code.
Well, since my issue is solved, I don't need it anymore :) -- Milan Babuskov http://abrick.sourceforge.net _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
