File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2846,7 +2846,8 @@ rd_file_path_from_eval_string(Arena *arena, String8 string)
28462846 E_Eval eval = e_eval_from_string(scratch.arena, string);
28472847 if(eval.expr->kind == E_ExprKind_LeafFilePath)
28482848 {
2849- result = raw_from_escaped_str8(arena, eval.expr->string);
2849+ result = raw_from_escaped_str8(scratch.arena, eval.expr->string);
2850+ result = path_normalized_from_string(arena, result);
28502851 }
28512852 scratch_end(scratch);
28522853 }
@@ -2857,7 +2858,8 @@ internal String8
28572858rd_eval_string_from_file_path(Arena *arena, String8 string)
28582859{
28592860 Temp scratch = scratch_begin(&arena, 1);
2860- String8 string_escaped = escaped_from_raw_str8(scratch.arena, string);
2861+ String8 string_normalized = path_normalized_from_string(scratch.arena, string);
2862+ String8 string_escaped = escaped_from_raw_str8(scratch.arena, string_normalized);
28612863 String8 result = push_str8f(arena, "file:\"%S\"", string_escaped);
28622864 scratch_end(scratch);
28632865 return result;
You can’t perform that action at this time.
0 commit comments