1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 00:34:26 +03:00

Remove readonly property

This commit is contained in:
Tae Won Ha 2017-12-06 20:59:58 +01:00
parent c6dd2b0bba
commit 5e745221ff
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 0 additions and 7 deletions

View File

@ -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)
}

View File

@ -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