diff --git a/lua/dap/hover/window.lua b/lua/dap/hover/window.lua index e1fda5f..2e802a6 100644 --- a/lua/dap/hover/window.lua +++ b/lua/dap/hover/window.lua @@ -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()