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 | 348a16981892aaabd9dcb34c21fb30009c9d829a (patch) | |
tree | fd03d2f17705d1e9a34154390a80a512739fc995 | |
parent | daed3cc39d9585ca3021baf768fc8a27a423fbb9 (diff) | |
download | scintilla-mirror-348a16981892aaabd9dcb34c21fb30009c9d829a.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; |