From 3a732f95b80b9e67bb71b4a588ac28c1698969d6 Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Mon, 7 Sep 2020 14:29:32 -0700 Subject: [PATCH] File lister now handles . in directory names --- src/app/editor/panels/foldhaus_panel_file_view.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/editor/panels/foldhaus_panel_file_view.h b/src/app/editor/panels/foldhaus_panel_file_view.h index d050a5f..739475a 100644 --- a/src/app/editor/panels/foldhaus_panel_file_view.h +++ b/src/app/editor/panels/foldhaus_panel_file_view.h @@ -29,6 +29,10 @@ FileViewUpdateWorkingDirectory(gs_const_string WorkingDirectory, file_view_state u32 SecondLastSlashIndex = FindLast(SanitizedDirectory, LastSlashIndex - 1, '\\'); SanitizedDirectory = Substring(SanitizedDirectory, 0, SecondLastSlashIndex); } + else if (StringsEqual(LastDir, ConstString("."))) + { + SanitizedDirectory = Substring(SanitizedDirectory, 0, LastSlashIndex); + } State->WorkingDirectory = PushString(&State->FileNamesArena, WorkingDirectory.Length + 2); PrintF(&State->WorkingDirectory, "%S", SanitizedDirectory);