From 348a16981892aaabd9dcb34c21fb30009c9d829a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 30 Apr 2012 12:48:10 +1000 Subject: When attempting to show invalid text in find indicator, hide the indicator. --- cocoa/ScintillaCocoa.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3