fix: don't hide readonly symbol when modified (#497)

This commit is contained in:
Tobias Schmitz 2021-12-18 14:04:09 +01:00 committed by GitHub
parent d02658b34d
commit 3a17c8f05a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ M.update_status = function(self)
if self.options.file_status then
if vim.bo.modified then
data = data .. self.options.symbols.modified
elseif vim.bo.modifiable == false or vim.bo.readonly == true then
end
if vim.bo.modifiable == false or vim.bo.readonly == true then
data = data .. self.options.symbols.readonly
end
end