<p></p>
<p><b>@b4n</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany-plugins/pull/1064#discussion_r574035839">markdown/src/plugin.c</a>:</p>
<pre style='color:#555'>>  {
-  GeanyDocument *doc = document_get_current();
+  if (!DOC_VALID(doc))
</pre>
<p>Wouldn't simply <code>doc == NULL</code> work here?  Do you really get non-NULL doc pointers that have <code>doc->valid == FALSE</code>?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/1064#pullrequestreview-588000690">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ62EBILOVANP5ELSMLS6LRBHANCNFSM4XLLJVAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ6RVMDGYUFT2NNYTFLS6LRBHA5CNFSM4XLLJVAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEMGC3MQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/1064#pullrequestreview-588000690",
"url": "https://github.com/geany/geany-plugins/pull/1064#pullrequestreview-588000690",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>