- removed skipping . and .. when tabulating matches.
- Added the (char *) sizeof when allocating memory for the filename
array (Rocco).
+ do_browser()
+ - Don't decrement longest by the length of path. Fixes crashes
+ on entering various dirs (Rocco).
+ - Don't ungetch() the exit key, unneeded, fixes inerting a file
+ causes exit code.
- nano.c:
main()
- Reorder the getopt options to be more or less alphabetical
i++;
}
- longest -= strlen(path);
-
if (*longest > COLS - 1)
*longest = COLS - 1;
/* Start over again with the new path value */
return do_browser(path);
} else {
-
- /* Work around for duplicating code */
- ungetch(NANO_EXIT_KEY);
retval = path;
abort = 1;
}