diff options
| author | Mikkel Hjortshøj <fyoucon@gmail.com> | 2020-01-09 19:19:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-09 19:19:23 +0100 |
| commit | 3e67ae7339129b6fffa34d878d42de89b248c641 (patch) | |
| tree | b9ce70281e952b2f05af2ef718acd675d5a0c2c1 | |
| parent | d520b9a1ba118d7a97da261d0df22f2ed4eb696f (diff) | |
| parent | 0e52c378658391af2363ac73f6f529770e9d582c (diff) | |
Merge pull request #534 from ThisDrunkDane/fix-log-mistake
Fix mistake in .Short_File_Path option in file_console_logger.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:]; } |