mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
fixed tab completion with long file names
svn path=/trunk/; revision=935
This commit is contained in:
parent
e857e97df1
commit
faac123528
1 changed files with 8 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue