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));
FindClose (hFile);
_tcscpy (&str[start], directory);
if( perfectmatch )
{
str[start] = '\"';
_tcscpy (&str[start+1], directory);
_tcscat (&str[start], maxmatch);
_tcscat (&str[start], "\"" );
}
if (!perfectmatch)
else
#ifdef __REACTOS__
Beep (440, 50);
#else