File lister now handles . in directory names
This commit is contained in:
parent
6491a88d8a
commit
3a732f95b8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue