aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/mason-core/ui/display.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/mason-core/ui/display.lua b/lua/mason-core/ui/display.lua
index cd6e3efb..3c143390 100644
--- a/lua/mason-core/ui/display.lua
+++ b/lua/mason-core/ui/display.lua
@@ -172,7 +172,7 @@ M._render_node = render_node
local function create_popup_window_opts(opts, sizes_only)
local columns = vim.o.columns
local top_offset = 1
- local height = vim.o.lines - vim.o.cmdheight - top_offset
+ local height = vim.o.lines - math.max(vim.o.cmdheight, top_offset) - top_offset
local width = math.floor(columns * 0.8)
local popup_layout = {
height = height,