geany/geany — comment on commit f31a84869d45980a7ecb27f5a4d6c3588c547eee
File: src/document.c line 2353
By ntrel:

Yes, but you added a DOC_VALID check. Documents are only valid if they have a scintilla editor. Redundant checks are bad.