1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

Make delegate weak

This commit is contained in:
Tae Won Ha 2021-12-23 14:27:12 +01:00
parent 226bc73c7b
commit 30b5ee7e4c
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -11,7 +11,7 @@ import RxPack
import RxSwift
import Tabs
public protocol NvimViewDelegate {
public protocol NvimViewDelegate: AnyObject {
func isMenuItemKeyEquivalent(_: NSEvent) -> Bool
}
@ -33,7 +33,7 @@ public class NvimView: NSView,
public static let minLinespacing = 0.5.cgf
public static let maxLinespacing = 8.cgf
public var delegate: NvimViewDelegate?
public weak var delegate: NvimViewDelegate?
public let usesCustomTabBar: Bool
public let tabBar: TabBar<TabEntry>?