On 26/10/2013 13:17, Nick Treleaven wrote:
- remove GeanyDocument::index and fix any code that uses it
- review all code indexing documents_array and fix any code retaining an
index (I expect that is rarer than code using GeanyDocument::index).
- change documents_array to only contain valid documents, i.e. on close
we swap the last valid document pointer with the pointer being removed, and decrement the length by 1.
As Dimitar mentioned, this will affect any loops that close documents. Hopefully there aren't many of them, they would need to be fixed.