<p>For whatever reason, in some cases <code>document_get_current()</code> doesn't<br>
return a valid document when it seems like it should, so when updating<br>
the markdown preview from signals where the related GeanyDocument<br>
is available, use that instead of calling <code>document_get_current()</code>.</p>
<p>In other cases, continue to use <code>document_get_current()</code> as before.</p>
<p><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #1062.">Closes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="801649415" data-permission-text="Title is private" data-url="https://github.com/geany/geany-plugins/issues/1062" data-hovercard-type="issue" data-hovercard-url="/geany/geany-plugins/issues/1062/hovercard" href="https://github.com/geany/geany-plugins/issues/1062">#1062</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/1064'>https://github.com/geany/geany-plugins/pull/1064</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Markdown: Update using known GeanyDocument when available</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/1064/files#diff-2369e3e69ccca433ab6a2bc293dca4f80284d12971eaf7aaec79b0d622822e5f">markdown/src/plugin.c</a>
    (17)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/1064.patch'>https://github.com/geany/geany-plugins/pull/1064.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/1064.diff'>https://github.com/geany/geany-plugins/pull/1064.diff</a></li>
</ul>

<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">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3UB64Y3LFRNLLDCUDS6FS2VANCNFSM4XLLJVAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ57ADY7JE6DJMLSRZ3S6FS2VA5CNFSM4XLLJVAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4L7XI67Q.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",
"url": "https://github.com/geany/geany-plugins/pull/1064",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>