Fix menu position for horizontal splitting
This commit is contained in:
@@ -140,10 +140,11 @@ statusline_entries_view.open = function(self, offset, entries)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local wininfo = vim.fn.getwininfo(vim.api.nvim_get_current_win())[1] or { winrow = 1 }
|
||||||
self.entries_win:open({
|
self.entries_win:open({
|
||||||
relative = 'editor',
|
relative = 'editor',
|
||||||
style = 'minimal',
|
style = 'minimal',
|
||||||
row = vim.api.nvim_win_get_height(0),
|
row = vim.api.nvim_win_get_height(0) + wininfo.winrow - 1,
|
||||||
col = 0,
|
col = 0,
|
||||||
width = vim.api.nvim_win_get_width(0),
|
width = vim.api.nvim_win_get_width(0),
|
||||||
height = 1,
|
height = 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user