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:
parent
f4626b7255
commit
a793be2f53
@ -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)
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user