fix(hover): clamp to max_height when computing height
This commit is contained in:
@@ -73,8 +73,9 @@ end
|
||||
|
||||
---@return integer
|
||||
function Window:compute_height()
|
||||
local text_height = vim.api.nvim_win_text_height(self.winid, {}).all
|
||||
return math.min(self.max_height or text_height, text_height)
|
||||
return vim.api.nvim_win_text_height(self.winid, {
|
||||
max_height = self.max_height,
|
||||
}).all
|
||||
end
|
||||
|
||||
---@param callback fun()
|
||||
|
||||
Reference in New Issue
Block a user