From a66330142251b125e1a723c8cdcb61801cabd581 Mon Sep 17 00:00:00 2001 From: Andrej Kenda Date: Wed, 24 Jul 2024 06:25:29 +0200 Subject: [PATCH] remove pre-0.10 get buf option --- lua/dbee/ui/drawer/convert.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lua/dbee/ui/drawer/convert.lua b/lua/dbee/ui/drawer/convert.lua index d21bfa8..bf76c7a 100644 --- a/lua/dbee/ui/drawer/convert.lua +++ b/lua/dbee/ui/drawer/convert.lua @@ -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