It accesses geany_data->documents_array, yes, but that still gives access to the document pointers (ex. via the documents macro). It would be no safer with respect to the lifetime issues.

what life time issues? Since we are single threaded we can safely assume that documents don't go away during a loop


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/964#issuecomment-196697311