When multiple files are closed with "Close All", the Lua OnClose event fires for each file closed, but gives the file path for whichever buffer was selected when "Close All" was used.
The value for editor.Length is correctly updated for each file, but the file path argument, props["FilePath"], and anything stored in the buffer table are not.
I'm using SciTE 1.74, on Windows XP.
Logged In: YES
user_id=12579
Originator: NO
Its unlikely I'll work on this myself.
Tested with this:
and then closing a SciTE window that has multiple tabs open (not sure if this is the "Close All" referred to in the report), and all the filenames show up correctly, no duplicates.
(Except for Untitled tabs, which are all shown as the current working directory including slash, e.g.
/foo/
, or empty if the current working directory is/
)Path argument fixed by [997d04].
props["FilePath"] and similar are not updated for each call. It would be possible to set more of the props for each call but that would have a performance cost. The path that sets up props["FIlePath"] also re-reads settings and does other chores that are needed when its likely the user will see that document which isn't the case for Close All.
Related
Commit: [997d04]