mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-27 14:14:19 +03:00
Remove readonly property
This commit is contained in:
parent
c6dd2b0bba
commit
5e745221ff
@ -197,16 +197,10 @@ extension NvimView {
|
||||
return nil
|
||||
}
|
||||
|
||||
guard let buftype = self.nvim.bufGetOption(buffer: buf, name: "buftype").value else {
|
||||
return nil
|
||||
}
|
||||
|
||||
let readonly = buftype != ""
|
||||
let current = buf == currentBuffer
|
||||
|
||||
return NvimView.Buffer(apiBuffer: buf,
|
||||
url: URL(fileURLWithPath: path),
|
||||
isReadOnly: readonly,
|
||||
isDirty: dirty,
|
||||
isCurrent: current)
|
||||
}
|
||||
|
@ -17,7 +17,6 @@ extension NvimView {
|
||||
public let apiBuffer: NvimApi.Buffer
|
||||
public let url: URL?
|
||||
|
||||
public let isReadOnly: Bool
|
||||
public let isDirty: Bool
|
||||
public let isCurrent: Bool
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user