fix: error when float border is 'none' (#125)
This commit is contained in:
parent
f322209a4a
commit
4ad162756b
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ M.open_float = function(dir)
|
||||||
)
|
)
|
||||||
|
|
||||||
-- Update the window title when we switch buffers
|
-- 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 function get_title()
|
||||||
local src_buf = vim.api.nvim_win_get_buf(winid)
|
local src_buf = vim.api.nvim_win_get_buf(winid)
|
||||||
local title = vim.api.nvim_buf_get_name(src_buf)
|
local title = vim.api.nvim_buf_get_name(src_buf)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue