Browse Source

Don't ignore files starting with . in tab complete if we asked for them

K. Lange 5 years ago
parent
commit
405834ec89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/sh.c

+ 1 - 1
apps/sh.c

@@ -436,7 +436,7 @@ void tab_complete_func(rline_context_t * c) {
 
 		struct dirent * ent = readdir(dirp);
 		while (ent != NULL) {
-			if (ent->d_name[0] != '.') {
+			if (ent->d_name[0] != '.' || compare[0] == '.') {
 				if (!word || strstr(ent->d_name, compare) == ent->d_name) {
 					struct stat statbuf;
 					/* stat it */