fix project title bug
parent
6a8c2e38aa
commit
12b345a566
|
@ -930,7 +930,7 @@ CUSTOM_DOC("Looks for a project.4coder file in the current directory and tries t
|
||||||
|
|
||||||
// NOTE(allen): Set Window Title
|
// NOTE(allen): Set Window Title
|
||||||
Variable_Handle proj_name_var = vars_read_key(prj_var, vars_save_string_lit("project_name"));
|
Variable_Handle proj_name_var = vars_read_key(prj_var, vars_save_string_lit("project_name"));
|
||||||
String_ID proj_name_id = vars_key_id_from_var(prj_var);
|
String_ID proj_name_id = vars_key_id_from_var(proj_name_var);
|
||||||
if (proj_name_id != 0){
|
if (proj_name_id != 0){
|
||||||
String8 proj_name = vars_read_string(scratch, proj_name_id);
|
String8 proj_name = vars_read_string(scratch, proj_name_id);
|
||||||
String8 title = push_u8_stringf(scratch, "4coder project: %.*s", string_expand(proj_name));
|
String8 title = push_u8_stringf(scratch, "4coder project: %.*s", string_expand(proj_name));
|
||||||
|
|
Loading…
Reference in New Issue