diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2012-04-30 12:48:10 +1000 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-04-30 12:48:10 +1000 |
commit | 478b63831772784fb5ef84bef168a4056d1ff7a9 (patch) | |
tree | dddf33abadacb9fdbf040d17a8c05f20c7a1cad6 | |
parent | 55fb74c1c5a379a723e344b19f5045274a0710e8 (diff) | |
download | scintilla-mirror-478b63831772784fb5ef84bef168a4056d1ff7a9.tar.gz |
When attempting to show invalid text in find indicator, hide the indicator.
-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; |