For whatever reason, in some cases `document_get_current()` doesn't return a valid document when it seems like it should, so when updating the markdown preview from signals where the related GeanyDocument is available, use that instead of calling `document_get_current()`.
In other cases, continue to use `document_get_current()` as before.
Closes #1062 You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/1064
-- Commit Summary --
* Markdown: Update using known GeanyDocument when available
-- File Changes --
M markdown/src/plugin.c (17)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/1064.patch https://github.com/geany/geany-plugins/pull/1064.diff