diff --git a/src/browser.c b/src/browser.c index 96071b1..e322aca 100644 --- a/src/browser.c +++ b/src/browser.c @@ -274,6 +274,10 @@ char *do_browser(char *path) continue; } #endif + /* Select entered directory if it is in cwd. */ + for (i = 0; i < filelist_len; ++i) + if (strcmp(filelist[i], newpath) == 0) + selected = i; /* Try opening and reading the entered directory, in newpath. */ goto read_directory_contents;