It seems the following corrections of **src/callback.c** would be sufficient
(marked with //apl):

```
void on_context_action1_activate(GtkMenuItem *menuitem, gpointer user_data)
<...>
        /* substitute the wildcard %s and run the command if it is non empty */
//apl   if (G_LIKELY(!EMPTY(command)))
        {
        gchar *command_line = g_strdup(command);
        command_line = build_replace_placeholder(doc, command_line); //apl
        utils_str_replace_all(&command_line, "%s", word);
<...>
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1836#issuecomment-383280101

Reply via email to