The current implementation (HyperSearchRequest._run():140) works correctly, because of the optimizations in VFS.load():496 and Buffer.load():302 which let the BufferIORequest for a temporary buffer run on the current thread, which results in a natural serialization of both actions.
This is a rather fragile implementation. Fix it by waiting for the IO to finish.
Other callers of jEdit.openTemporary() already do this.
Log in to post a comment.