Open dir, small fixes

This commit is contained in:
Krzosa Karol
2025-12-27 21:37:41 +01:00
parent 28d8348b89
commit 1011c63494
5 changed files with 24 additions and 13 deletions

View File

@@ -796,8 +796,13 @@ int main(int argc, char **argv)
if (it == "--testing") {
Testing = true;
} else if (IsDir(it)) {
WorkDir = GetAbsolutePath(Perm, it);
OpenCode(WorkDir);
} else {
if (!FileExists(it)) continue;
if (!FileExists(it)) {
continue;
}
Window *window = GetWindow({0});
WindowOpenBufferView(window, it);
}