diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2015-06-25 17:38:51 +1000 |
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2015-06-25 17:38:51 +1000 |
| commit | 2fcb9424b2e7be763696aeb7f8a12b4d0d3cb702 (patch) | |
| tree | 80e3e2abd8e28406cdf84784c29e2bfca235cf3b /cocoa/ScintillaCocoa.mm | |
| parent | 6d866dad8edc8d9a157f849d9316984e6242a1bc (diff) | |
| download | scintilla-mirror-2fcb9424b2e7be763696aeb7f8a12b4d0d3cb702.tar.gz | |
Bug [#1740]. Cancel autocompletion and calltip when window moved.
Diffstat (limited to 'cocoa/ScintillaCocoa.mm')
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 11 |
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 |
