aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.mm
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-06-25 17:38:51 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-06-25 17:38:51 +1000
commit2fcb9424b2e7be763696aeb7f8a12b4d0d3cb702 (patch)
tree80e3e2abd8e28406cdf84784c29e2bfca235cf3b /cocoa/ScintillaCocoa.mm
parent6d866dad8edc8d9a157f849d9316984e6242a1bc (diff)
downloadscintilla-mirror-2fcb9424b2e7be763696aeb7f8a12b4d0d3cb702.tar.gz
Bug [#1740]. Cancel autocompletion and calltip when window moved.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
-rw-r--r--cocoa/ScintillaCocoa.mm11
1 files changed, 11 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 2fce53ded..6bd9d4c32 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -2450,6 +2450,17 @@ void ScintillaCocoa::ActiveStateChanged(bool isActive)
}
}
+//--------------------------------------------------------------------------------------------------
+
+/**
+ * When the window is about to move, the calltip and autcoimpletion stay in the same spot,
+ * so cancel them.
+ */
+void ScintillaCocoa::WindowWillMove() {
+ AutoCompleteCancel();
+ ct.CallTipCancel();
+}
+
// If building with old SDK, need to define version number for 10.8
#ifndef NSAppKitVersionNumber10_8
#define NSAppKitVersionNumber10_8 1187