Skip to content

Commit

Permalink
fix language_import mode bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
blackav committed Sep 16, 2024
1 parent d062cb1 commit 885c5c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/super_html_8.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ super_html_read_serve(
ASSERT(compile_id > 0 && compile_id <= csc->max_lang);
struct section_language_data *serv_lang = csc->langs[compile_id];
ASSERT(serv_lang);
sstate->serv_langs[compile_id] = serv_lang;
sstate->serv_extra[compile_id].rev_lang_id = lang->id;
sstate->serv_langs[lang->id] = serv_lang;
sstate->serv_extra[lang->id].rev_lang_id = compile_id;
}

// inject languages from the primary compilation server
Expand Down Expand Up @@ -1501,7 +1501,7 @@ super_html_simplify_lang(
return 1;
}

lang->id = serv_lang->id;
//lang->id = serv_lang->id;
_ = snprintf(lang->short_name, sizeof(lang->short_name), "%s", serv_lang->short_name);
// always inherited
//_ = snprintf(lang->src_sfx, sizeof(lang->src_sfx), "%s", serv_lang->src_sfx);
Expand All @@ -1511,6 +1511,9 @@ super_html_simplify_lang(
if (lang->compile_id == lang->id) {
lang->compile_id = 0;
}
if (lang->compile_id > 0) {
need_section = 1;
}

// evaluated later
lang->disable_auto_update = -1;
Expand Down

0 comments on commit 885c5c9

Please sign in to comment.