1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 23:02:35 +03:00

Adapt to RxSwift 6.2

This commit is contained in:
Tae Won Ha 2021-06-18 08:53:23 +02:00
parent f4626b7255
commit a793be2f53
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ public extension NvimView {
if chars == "\0" {
self.api
.input(keys: self.wrapNamedKeys("Nul"), errWhenBlocked: false)
.subscribe(onError: { [weak self] error in
.subscribe(onFailure: { [weak self] error in
self?.log.error("Error in \(#function): \(error)")
})
.disposed(by: self.disposeBag)
@ -131,7 +131,7 @@ public extension NvimView {
if flags == .control, chars == "6" {
self.api
.input(keys: "\u{1e}", errWhenBlocked: false) // AKA ^^
.subscribe(onError: { [weak self] error in
.subscribe(onFailure: { [weak self] error in
self?.log.error("Error in \(#function): \(error)")
})
.disposed(by: self.disposeBag)
@ -142,7 +142,7 @@ public extension NvimView {
// <C-2> should generate \0, escaping as above
self.api
.input(keys: self.wrapNamedKeys("Nul"), errWhenBlocked: false)
.subscribe(onError: { [weak self] error in
.subscribe(onFailure: { [weak self] error in
self?.log.error("Error in \(#function): \(error)")
})
.disposed(by: self.disposeBag)

View File

@ -106,7 +106,7 @@ public class NvimView: NSView,
set {
self.api
.setCurrentDir(dir: newValue.path)
.subscribeOn(self.scheduler)
.subscribe(on: self.scheduler)
.subscribe(onError: { [weak self] error in
self?.eventsSubject
.onError(Error.ipc(msg: "Could not set cwd to \(newValue)", cause: error))