From 30d188c2932d6ef609d894fefeb7e7b03ccff463 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Mon, 21 Nov 2011 20:57:16 -0500 Subject: Bash-4.1 patchlevel 11 --- lib/readline/complete.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/readline/complete.c b/lib/readline/complete.c index ad9ca05..bda2204 100644 --- a/lib/readline/complete.c +++ b/lib/readline/complete.c @@ -2138,7 +2138,7 @@ rl_filename_completion_function (text, state) All other entries except "." and ".." match. */ if (filename_len == 0) { - if (_rl_match_hidden_files == 0 && HIDDEN_FILE (entry->d_name)) + if (_rl_match_hidden_files == 0 && HIDDEN_FILE (convfn)) continue; if (convfn[0] != '.' || @@ -2219,7 +2219,7 @@ rl_filename_completion_function (text, state) temp[dirlen++] = '/'; } - strcpy (temp + dirlen, entry->d_name); + strcpy (temp + dirlen, convfn); } else temp = savestring (convfn); -- cgit v1.2.3