fixed tab completion with long file names

svn path=/trunk/; revision=935
This commit is contained in:
Phillip Susi 2000-01-17 02:17:50 +00:00
parent e857e97df1
commit faac123528

View file

@ -125,11 +125,15 @@ VOID CompleteFilename (LPTSTR str, INT charcount)
while (FindNextFile (hFile, &file)); while (FindNextFile (hFile, &file));
FindClose (hFile); FindClose (hFile);
if( perfectmatch )
_tcscpy (&str[start], directory); {
str[start] = '\"';
_tcscpy (&str[start+1], directory);
_tcscat (&str[start], maxmatch); _tcscat (&str[start], maxmatch);
_tcscat (&str[start], "\"" );
}
if (!perfectmatch) else
#ifdef __REACTOS__ #ifdef __REACTOS__
Beep (440, 50); Beep (440, 50);
#else #else