fix: cursor theme if winbar is set (#2066)

This commit is contained in:
Simon Hauser
2022-07-12 13:21:19 +02:00
committed by GitHub
parent ac38730da1
commit 7485b06d58

View File

@@ -600,8 +600,9 @@ layout_strategies.cursor = make_documented_layout(
end end
local position = vim.api.nvim_win_get_position(0) local position = vim.api.nvim_win_get_position(0)
local winbar = vim.o.winbar == "" and 0 or 1
local top_left = { local top_left = {
line = vim.fn.winline() + position[1] + bs, line = vim.fn.winline() + position[1] + bs + winbar,
col = vim.fn.wincol() + position[2], col = vim.fn.wincol() + position[2],
} }
local bot_right = { local bot_right = {