[Github-comments] [geany-plugins] plugin Numbered Bookmarks activated causes geany to crash at start-up (#301)
Frank Lanitz
notifications at xxxxx
Mon Nov 9 20:17:28 UTC 2015
Something like this could solve the issue:
@@ -874,6 +874,7 @@ static gint NextFreeMarker(ScintillaObject* sci)
static void SetMarker(ScintillaObject* sci,gint bookmarkNumber,gint markerNumber,gint line)
{
guint32 *markers;
static void SetMarker(ScintillaObject* sci,gint bookmarkNumber,gint markerNumber,gint line)
{
guint32 *markers;
+ GeanyDocument *doc;
FileData *fd;
/* insert new marker */
@@ -882,6 +883,10 @@ static void SetMarker(ScintillaObject* sci,gint bookmarkNumber,gint markerNumber
scintilla_send_message(sci,SCI_MARKERADD,line,markerNumber);
/* update record of which bookmark uses which marker */
+
+ doc = document_get_current();
+ g_return_if_fail(doc != NULL);
but I doubt that this will be without side effect.
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/301#issuecomment-155179772
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151109/fd1c7a3c/attachment.html>
More information about the Github-comments
mailing list