simplify
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3707 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
8f975a11f0
commit
296ee153b0
|
@ -330,12 +330,9 @@ char *do_browser(char *path, DIR *dir)
|
||||||
/* If we've successfully opened a directory, and it's
|
/* If we've successfully opened a directory, and it's
|
||||||
* "..", save the current directory in prev_dir, so that
|
* "..", save the current directory in prev_dir, so that
|
||||||
* we can select it later. */
|
* we can select it later. */
|
||||||
} else if (strcmp(tail(filelist[selected]),
|
} else if (strcmp(tail(filelist[selected]), "..") == 0)
|
||||||
"..") == 0) {
|
prev_dir = mallocstrcpy(NULL,
|
||||||
prev_dir = mallocstrcpy(NULL, filelist[selected]);
|
striponedir(filelist[selected]));
|
||||||
prev_dir = mallocstrassn(prev_dir,
|
|
||||||
striponedir(prev_dir));
|
|
||||||
}
|
|
||||||
|
|
||||||
dir = opendir(filelist[selected]);
|
dir = opendir(filelist[selected]);
|
||||||
if (dir == NULL) {
|
if (dir == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue