@LarsGit223 commented on this pull request.
> + * @return A pointer to the style struct. + */ +GEANY_API_SYMBOL +const GeanyLexerStyle *highlighting_get_named_style(const gchar *named_style) +{ + GeanyLexerStyle *cs; + gchar *comma, *name = NULL; + + g_return_val_if_fail(named_style, NULL); + name = utils_strdupa(named_style); /* named_style must not be written to, may be a static string */ + + comma = strstr(name, ","); + if (comma) + { + *comma = '\0'; /* terminate name to make lookup work */ + }
I removed it. It was a leftover copied in from read_named_style()
. But it doesn't make sense any more.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.