1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-01 01:32:04 +03:00

Use Any instead of AnyObject

This commit is contained in:
Tae Won Ha 2020-08-12 18:39:39 +02:00
parent d9cf75d690
commit f2878903d6
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -46,7 +46,7 @@ extension NvimView {
// MARK: - Edit Menu Items
extension NvimView {
@IBAction func undo(_ sender: AnyObject?) {
@IBAction func undo(_ sender: Any?) {
switch self.mode {
case .insert, .replace:
self.api
@ -67,7 +67,7 @@ extension NvimView {
}
}
@IBAction func redo(_ sender: AnyObject?) {
@IBAction func redo(_ sender: Any?) {
switch self.mode {
case .insert, .replace:
self.api
@ -88,7 +88,7 @@ extension NvimView {
}
}
@IBAction func cut(_ sender: AnyObject?) {
@IBAction func cut(_ sender: Any?) {
switch self.mode {
case .visual, .normal:
self.api
@ -102,7 +102,7 @@ extension NvimView {
}
}
@IBAction func copy(_ sender: AnyObject?) {
@IBAction func copy(_ sender: Any?) {
switch self.mode {
case .visual, .normal:
self.api
@ -116,7 +116,7 @@ extension NvimView {
}
}
@IBAction func paste(_ sender: AnyObject?) {
@IBAction func paste(_ sender: Any?) {
guard let content = NSPasteboard.general.string(forType: .string) else {
return
}
@ -182,7 +182,7 @@ extension NvimView {
.disposed(by: self.disposeBag)
}
@IBAction func delete(_ sender: AnyObject?) {
@IBAction func delete(_ sender: Any?) {
switch self.mode {
case .normal, .visual:
self.api