Initialize shared GSTextFinder

This commit is contained in:
Gregory John Casamento 2020-08-04 07:25:10 -04:00
parent 40d84d7284
commit 430862e7e9

View file

@ -32,6 +32,17 @@
@implementation NSTextFinder
- (instancetype) init
{
self = [super init];
if (self != nil)
{
// initialize finder...
_finder = [GSTextFinder sharedTextFinder];
}
return self;
}
// Operation methods
- (void) _showFindInterface
{
@ -233,6 +244,9 @@
{
ASSIGN(_incrementalMatchRanges, [coder decodeObjectForKey: @"NSIncrementalMatchRanges"]);
}
// initialize finder...
_finder = [GSTextFinder sharedTextFinder];
}
else
{