changeset 94435:9b442839cb2e

(file_name_completion): Fix another mixing of encoded and decoded names.
author Andreas Schwab <schwab@suse.de>
date Mon, 28 Apr 2008 18:33:06 +0000
parents 561a10e874f2
children 0918f4a758d2
files src/ChangeLog src/dired.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Apr 28 17:59:38 2008 +0000
+++ b/src/ChangeLog	Mon Apr 28 18:33:06 2008 +0000
@@ -1,3 +1,8 @@
+2008-04-28  Andreas Schwab  <schwab@suse.de>
+
+	* dired.c (file_name_completion): Fix another mixing of encoded
+	and decoded names.
+
 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
 
 	* w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
--- a/src/dired.c	Mon Apr 28 17:59:38 2008 +0000
+++ b/src/dired.c	Mon Apr 28 18:33:06 2008 +0000
@@ -756,7 +756,7 @@
 	bestmatch = DECODE_FILE (bestmatch);
       return bestmatch;
     }
-  if (matchcount == 1 && bestmatchsize == SCHARS (file))
+  if (matchcount == 1 && bestmatchsize == SCHARS (encoded_file))
     return Qt;
   bestmatch = Fsubstring (bestmatch, make_number (0),
 			  make_number (bestmatchsize));