Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 09 Dec 2023 23:34:06 UTC Commit: 512e88df8d97284c191459450bce4dd7877b9c2b https://github.com/geany/geany/commit/512e88df8d97284c191459450bce4dd7877b9c...
Log Message: ----------- Merge pull request #3640 from eht16/issue3624_do_not_none_charset
Do not show charset "None" in the list of encodings
Modified Paths: -------------- src/encodings.c
Modified: src/encodings.c 5 lines changed, 4 insertions(+), 1 deletions(-) =================================================================== @@ -278,7 +278,10 @@ gchar *encodings_to_string(const GeanyEncoding* enc) g_return_val_if_fail(enc->name != NULL, NULL); g_return_val_if_fail(enc->charset != NULL, NULL);
- return g_strdup_printf("%s (%s)", enc->name, enc->charset); + if (enc->idx == GEANY_ENCODING_NONE) + return g_strdup(enc->name); // enc->charset is "None" and would be useless to display + else + return g_strdup_printf("%s (%s)", enc->name, enc->charset); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).