diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/std/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/std/file.c b/src/std/file.c index bd0d8cc..d61e871 100644 --- a/src/std/file.c +++ b/src/std/file.c @@ -268,7 +268,7 @@ BufferView file_get_parent_directory(BufferView filepath) { if(filepath.data[i] == '/') return create_buffer_view(filepath.data, i); } - return create_buffer_view(filepath.data, 0); + return create_buffer_view(".", 1); } BufferView file_get_name(BufferView filepath) { |