fix: error when float border is 'none' (#125)

This commit is contained in:
Steven Arcangeli 2023-06-14 09:08:51 -07:00
parent f322209a4a
commit 4ad162756b

View file

@ -302,7 +302,7 @@ M.open_float = function(dir)
)
-- Update the window title when we switch buffers
if vim.fn.has("nvim-0.9") == 1 then
if vim.fn.has("nvim-0.9") == 1 and config.float.border ~= "none" then
local function get_title()
local src_buf = vim.api.nvim_win_get_buf(winid)
local title = vim.api.nvim_buf_get_name(src_buf)