geany/geany — pull request #247 by ntrel (2014-04-27 15:45:05+00:00)
Title:  Keep an invalid document in documents[0]

This will catch code that iterates `documents_array` without checking `is_valid` every time. Otherwise the tester has to close a document before testing the code to create an invalid document.

Any code this breaks was probably broken already.

Note: doing this seems safer and easier than auditing all code using document indexes and removing `is_valid`.