diff options
| author | gingerBill <bill@gingerbill.org> | 2020-01-11 20:11:47 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-01-11 20:11:47 +0000 |
| commit | 28570f8fa4474c0e3bf41a49ef8d0a8bd985f14a (patch) | |
| tree | b959b17b1c57b10c0be51dba80f15de47f793c3c | |
| parent | 24bd370e1b25d7cb8289ceda450a00867fc08db7 (diff) | |
| parent | 3e67ae7339129b6fffa34d878d42de89b248c641 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
| -rw-r--r-- | core/log/file_console_logger.odin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/log/file_console_logger.odin b/core/log/file_console_logger.odin index 6bddf7ffb..0f44347f9 100644 --- a/core/log/file_console_logger.odin +++ b/core/log/file_console_logger.odin @@ -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:]; } |