Kaydet (Commit) 938da95c authored tarafından Colomban Wendling's avatar Colomban Wendling

Merge pull request #1326 from b4n/default-open-enc

Fix loading the default open encoding option
......@@ -831,7 +831,9 @@ static void load_dialog_prefs(GKeyFile *config)
"none");
if (tmp_string)
{
const GeanyEncoding *enc = encodings_get_from_charset(tmp_string);
const GeanyEncoding *enc = NULL;
if (strcmp(tmp_string, "none") != 0)
enc = encodings_get_from_charset(tmp_string);
if (enc != NULL)
file_prefs.default_open_encoding = enc->idx;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment