Editor call with EF_OPENMODE_USEEXISTING does not move cursor - bug or limitation?
I am currently making a plugin which allows to conveniently navigate though tracebacks by opening files in Far editor and moving cursor to appropriate line. The problem is when the file is already open, the arguments StartLine and StartChar of the Editor() function have no effect (I am calling it with EF_OPENMODE_USEEXISTING).
Let me know if there is a workaround or if I am missing something. If fixing the behavior may break something, perhaps it makes sense to add EF_OPENMODE_MOVECURSOR flag to EDITOR_FLAGS which will enable this behavior?
Ok, digging a bit deeper looks like ECTL_SETPOSITION works for editor even if it is in the background so the problem can be walked around... The other problem in this case is when there are multiple editors in the background I don't know how to tell which editor should be affected. Is there a way to tell to ECTL_SETPOSITION which of the background editors I am refering to, and/or bring specific background editor to the foreground?