From 211763d2c8b2bb49a3f17a6e4359a3b86a26d5a3 Mon Sep 17 00:00:00 2001 From: The_miro Date: Tue, 26 May 2026 13:40:45 +0200 Subject: [PATCH] fix(nvim): guarantee abook pane is at least 20 lines tall Co-Authored-By: Claude Sonnet 4.6 --- nvim/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index 1f3732e..d199a50 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -250,8 +250,8 @@ local function toggle_pim() local W = vim.o.columns local right_w = math.max(80, math.floor(W * 0.45)) local left_w = math.max(1, W - right_w) - local top_h = math.max(1, math.floor(H / 2)) - local bot_h = math.max(1, H - top_h) + local top_h = math.max(20, math.floor(H / 2)) + local bot_h = math.max(1, H - top_h) local w1 = _pim_float(0, 0, H, left_w) local ok, err = pcall(vim.cmd, "terminal alot")