diff options
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 0fa8441f7..0518d292d 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -227,8 +227,10 @@ const CGFloat paddingHighlightY = 2;  }  - (void) animateMatch: (CGPoint)ptText bounce:(BOOL)bounce { -	if (!self.sFind || ![self.sFind length]) +	if (!self.sFind || ![self.sFind length]) { +		[self hideMatch];  		return; +	}  	CGFloat width = self.widthText + paddingHighlightX * 2;  	CGFloat height = self.heightLine + paddingHighlightY * 2; | 
