From acd7d03bf08f07f591692bb21e53ae11ef1b8249 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 27 Sep 2025 02:35:56 +0200 Subject: [PATCH] fix(dap.hover): remove code duplication --- lua/ow/dap/hover/window.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/ow/dap/hover/window.lua b/lua/ow/dap/hover/window.lua index eb4ded4..a46e5c0 100644 --- a/lua/ow/dap/hover/window.lua +++ b/lua/ow/dap/hover/window.lua @@ -179,9 +179,8 @@ function Window:expand_at_cursor() vim.api.nvim_win_set_config(self.winid, { width = self:compute_width(), }) - local text_height = vim.api.nvim_win_text_height(self.winid, {}).all vim.api.nvim_win_set_config(self.winid, { - height = math.min(self.max_height or text_height, text_height), + height = self:compute_height(), }) end, debug.traceback)