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