aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authorchinhster <unknown>2017-11-09 09:04:57 +1100
committerchinhster <unknown>2017-11-09 09:04:57 +1100
commit7d91d5d928acc050a0aca92ed1a20753b43449d7 (patch)
treebc60b118abd8581850bf581e4afd408eb0b85d45 /cocoa
parent15cdc7c516058f218d9f1aac1173b98c5ec1b50d (diff)
downloadscintilla-mirror-7d91d5d928acc050a0aca92ed1a20753b43449d7.tar.gz
Backport: Close autocompletion list for escape and delete on macOS 10.13 as the window was emptying but stayed visible.
Backport of changeset 6416:ab409d732f0f.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/PlatCocoa.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 0069106e5..6547631ad 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -1908,8 +1908,7 @@ void Window::Destroy()
id idWin = static_cast<id>(wid);
if ([idWin isKindOfClass: [NSWindow class]])
{
- NSWindow* win = static_cast<NSWindow*>(idWin);
- [win release];
+ [idWin close];
}
}
wid = 0;