Don't change delimiter as location has changed to be unified no matter the platform

This commit is contained in:
Mikkel Hjortshoej
2020-01-08 21:29:46 +01:00
parent d520b9a1ba
commit 0e52c37865
+1 -2
View File
@@ -121,9 +121,8 @@ do_location_header :: proc(opts : Options, buf : ^strings.Builder, location := #
file := location.file_path;
if .Short_File_Path in opts {
when os.OS == "windows" do delimiter := '\\'; else do delimiter := '/';
last := 0;
for r, i in location.file_path do if r == delimiter do last = i+1;
for r, i in location.file_path do if r == '/' do last = i+1;
file = location.file_path[last:];
}