From ee289d7a2b361d0ad274a68c704e10e78fd75628 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Wed, 27 Dec 2000 16:12:47 +0000
Subject: [PATCH] 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
---
 ChangeLog | 3 +++
 files.c   | 5 -----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e3bc0ddb..217393d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 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
diff --git a/files.c b/files.c
index c39a482a..870be700 100644
--- a/files.c
+++ b/files.c
@@ -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
-- 
GitLab