mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 08:06:07 +02:00
* still add files that start with ., just not to FTS
git-svn-id: trunk@48013 -
(cherry picked from commit 1332915a10
)
This commit is contained in:
parent
489bd30b82
commit
e8975d6be3
@ -152,11 +152,18 @@ end;
|
|||||||
|
|
||||||
procedure TFpDocChmWriter.FileAdded ( AStream: TStream;
|
procedure TFpDocChmWriter.FileAdded ( AStream: TStream;
|
||||||
const AEntry: TFileEntryRec ) ;
|
const AEntry: TFileEntryRec ) ;
|
||||||
|
var FTsave : boolean;
|
||||||
begin
|
begin
|
||||||
// Exclude Full text index for files starting from the dot
|
// Exclude Full text index for files starting from the dot
|
||||||
if Pos('.', AEntry.Name) <> 1 then
|
if Pos('.', AEntry.Name) <> 1 then
|
||||||
inherited FileAdded(AStream, AEntry);
|
inherited FileAdded(AStream, AEntry)
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
FTsave:=FullTextSearch;
|
||||||
|
FullTextSearch:=False;
|
||||||
|
inherited FileAdded(AStream, AEntry);
|
||||||
|
FullTextSearch:=FTsave;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TCHMHTMLWriter }
|
{ TCHMHTMLWriter }
|
||||||
|
Loading…
Reference in New Issue
Block a user