From faac1235284eab4af4e9de7ad37812b9bf43b167 Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Mon, 17 Jan 2000 02:17:50 +0000 Subject: [PATCH] fixed tab completion with long file names svn path=/trunk/; revision=935 --- rosapps/cmd/filecomp.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rosapps/cmd/filecomp.c b/rosapps/cmd/filecomp.c index 0fe1b19d142..678e3a91b63 100644 --- a/rosapps/cmd/filecomp.c +++ b/rosapps/cmd/filecomp.c @@ -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