comparison src/dired.c @ 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 9d03d6298e0f
children 41892e1c80a1
comparison
equal deleted inserted replaced
94434:561a10e874f2 94435:9b442839cb2e
754 { 754 {
755 if (STRINGP (bestmatch)) 755 if (STRINGP (bestmatch))
756 bestmatch = DECODE_FILE (bestmatch); 756 bestmatch = DECODE_FILE (bestmatch);
757 return bestmatch; 757 return bestmatch;
758 } 758 }
759 if (matchcount == 1 && bestmatchsize == SCHARS (file)) 759 if (matchcount == 1 && bestmatchsize == SCHARS (encoded_file))
760 return Qt; 760 return Qt;
761 bestmatch = Fsubstring (bestmatch, make_number (0), 761 bestmatch = Fsubstring (bestmatch, make_number (0),
762 make_number (bestmatchsize)); 762 make_number (bestmatchsize));
763 /* Now that we got the right initial segment of BESTMATCH, 763 /* Now that we got the right initial segment of BESTMATCH,
764 decode it from the coding system in use. */ 764 decode it from the coding system in use. */