fix: use 0 as the current winid (#238)

This commit is contained in:
JINNOUCHI Yasushi 2024-08-11 16:36:41 +09:00 committed by GitHub
parent 7303f126c7
commit 39f70a87a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ local function setup(ext_config)
if vim.api.nvim_buf_get_name(args.buf) == "" then if vim.api.nvim_buf_get_name(args.buf) == "" then
return return
end end
local is_floatwin = vim.api.nvim_win_get_config(args.buf).relative ~= "" local is_floatwin = vim.api.nvim_win_get_config(0).relative ~= ""
if not is_floatwin then if not is_floatwin then
frecency.register(args.buf) frecency.register(args.buf)
end end