Commit ee289d7a authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Don't skip . and .. in cwd_tab_completion()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@431 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 1e6fb08d
Showing with 3 additions and 5 deletions
+3 -5
CVS code -
- faq.html:
- Fix typos and small mistakes (Jordi).
- files.c:
cwd_tab_completion()
- removed skipping . and .. when tabulating matches.
- nano.c:
main()
- Reorder the getopt options to be more or less alphabetical
......
......@@ -807,11 +807,6 @@ char **cwd_tab_completion(char *buf, int *num_matches)
}
while ((next = readdir(dir)) != NULL) {
/* Some quick sanity checks */
if ((strcmp(next->d_name, "..") == 0)
|| (strcmp(next->d_name, ".") == 0)) {
continue;
}
#ifdef DEBUG
fprintf(stderr, "Comparing \'%s\'\n", next->d_name);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment