diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-07-12 13:21:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-12 13:21:19 +0200 |
| commit | 7485b06d5854a8f3098dcbacc880f0a1107b3783 (patch) | |
| tree | a98fb0f1c074fed3e23bbbc29d687f02272a63f1 /lua/telescope/pickers/layout_strategies.lua | |
| parent | ac38730da1d3696b608bc5bedf8b370f6435b884 (diff) | |
fix: cursor theme if winbar is set (#2066)
Diffstat (limited to 'lua/telescope/pickers/layout_strategies.lua')
| -rw-r--r-- | lua/telescope/pickers/layout_strategies.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/pickers/layout_strategies.lua b/lua/telescope/pickers/layout_strategies.lua index 3a01d7f..6e09c64 100644 --- a/lua/telescope/pickers/layout_strategies.lua +++ b/lua/telescope/pickers/layout_strategies.lua @@ -600,8 +600,9 @@ layout_strategies.cursor = make_documented_layout( end local position = vim.api.nvim_win_get_position(0) + local winbar = vim.o.winbar == "" and 0 or 1 local top_left = { - line = vim.fn.winline() + position[1] + bs, + line = vim.fn.winline() + position[1] + bs + winbar, col = vim.fn.wincol() + position[2], } local bot_right = { |
