I agree with @elextr. See updated PR. I restored the `if (doc)` check, but also added a `g_warning` in case this check fails. (`g_critical` sounds too strong here: it’s currently only used for three serious conditions in all of Geany.)
-- 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/pull/1537#issuecomment-315527684