Add '..' to file listing

This commit is contained in:
Krzosa Karol
2026-01-23 22:35:12 +01:00
parent 9a64fd8e01
commit b75e0a8a55

View File

@@ -13,6 +13,7 @@ void InsertDirectoryNavigation(Buffer *buffer) {
Scratch scratch;
ResetBuffer(buffer);
RawAppendf(buffer, "\n");
RawAppendf(buffer, "..\n");
for (FileIter it = IterateFiles(scratch, buffer->name); IsValid(it); Advance(&it)) {
RawAppendf(buffer, "%S\n", it.filename);
}