mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +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 )
|
||||||
|
{
|
||||||
|
str[start] = '\"';
|
||||||
|
_tcscpy (&str[start+1], directory);
|
||||||
|
_tcscat (&str[start], maxmatch);
|
||||||
|
_tcscat (&str[start], "\"" );
|
||||||
|
}
|
||||||
|
|
||||||
_tcscpy (&str[start], directory);
|
else
|
||||||
_tcscat (&str[start], maxmatch);
|
|
||||||
|
|
||||||
if (!perfectmatch)
|
|
||||||
#ifdef __REACTOS__
|
#ifdef __REACTOS__
|
||||||
Beep (440, 50);
|
Beep (440, 50);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue