Skip to content

Commit

Permalink
remove pre-0.10 get buf option
Browse files Browse the repository at this point in the history
  • Loading branch information
kndndrj committed Jul 24, 2024
1 parent fecb54b commit a663301
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lua/dbee/ui/drawer/convert.lua
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,7 @@ local function modified_suffix(bufnr, refresh)
end

local suffix = ""
local modified
if vim.fn.has('nvim-0.10') == 1 then
modified = vim.api.nvim_get_option_value("modified", {buf = bufnr})
else
modified = vim.api.nvim_buf_get_option(bufnr, "modified")
end
if modified then
if vim.api.nvim_get_option_value("modified", { buf = bufnr }) then
suffix = ""
end

Expand Down

0 comments on commit a663301

Please sign in to comment.