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

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2256#discussion_r313414462">src/build.c</a>:</p>
<pre style='color:#555'>> @@ -2291,6 +2291,22 @@ static void build_load_menu_grp(GKeyFile *config, GeanyBuildCommand **dst, gint
 }
 
 
+/* set GeanyBuildCommand if it doesn't already exist and there is a command */
+static void assign_cmd(GeanyBuildCommand *type, guint id,
+               const gchar *label, gchar *value)
+{
+       if (!EMPTY(value) && ! type[GBO_TO_CMD(id)].exists)
+       {
+               type[GBO_TO_CMD(id)].exists = TRUE;
+               SETPTR(type[GBO_TO_CMD(id)].label, g_strdup(label));
+               SETPTR(type[GBO_TO_CMD(id)].command, value);
+               SETPTR(type[GBO_TO_CMD(id)].working_dir, NULL);
+               type[GBO_TO_CMD(id)].old = TRUE;
</pre>
<p>I was trying not to make several changes at once, to avoid bugs.</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/2256?email_source=notifications&email_token=AAIOWJ2XHGUS2WEGOB7VMFTQEK5LXA5CNFSM4ILBSKBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBMZFEA#discussion_r313414462">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6P4TSHPXBGP6JFLSTQEK5LXANCNFSM4ILBSKBA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3GL2YIF4XFQ46SSRDQEK5LXA5CNFSM4ILBSKBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBMZFEA.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/2256?email_source=notifications\u0026email_token=AAIOWJ2XHGUS2WEGOB7VMFTQEK5LXA5CNFSM4ILBSKBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBMZFEA#discussion_r313414462",
"url": "https://github.com/geany/geany/pull/2256?email_source=notifications\u0026email_token=AAIOWJ2XHGUS2WEGOB7VMFTQEK5LXA5CNFSM4ILBSKBKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCBMZFEA#discussion_r313414462",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>