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

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2586#discussion_r488338010">src/project.c</a>:</p>
<pre style='color:#555'>> +                    /* get last path_delimiter so we know the path */
+                       int i;
+                       int last_path_delimiter;
+                       for (i = 0; locale_filename[i] != '\0'; ++i) {
+                               if (locale_filename[i] == path_delimiter) {
+                                       last_path_delimiter = i;
+                               }
+                       }
+
+                       /* get substring containing only the filename path */
+                       gchar *filename_path = g_malloc((last_path_delimiter + 2) * sizeof(char));
+                       strncpy(filename_path, locale_filename, last_path_delimiter + 1);
+                       filename_path[last_path_delimiter + 1] = '\0';
</pre>
<p>+1 Just FTR <a href="https://developer.gnome.org/glib/stable/index.html" rel="nofollow">https://developer.gnome.org/glib/stable/index.html</a></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/pull/2586#discussion_r488338010">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3F2MGQ3OSIISGJCSTSF3DT3ANCNFSM4RLUS2GA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ5UH3NHHL3S5VEC5O3SF3DT3A5CNFSM4RLUS2GKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODUNG4ZQ.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/pull/2586#discussion_r488338010",
"url": "https://github.com/geany/geany/pull/2586#discussion_r488338010",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>