From df21a9b757a0a0fa1d77334bc67d0e185437911e Mon Sep 17 00:00:00 2001 From: robin Date: Sat, 7 Mar 2026 19:13:35 +0100 Subject: [PATCH] fix(view): adapt `win.hidestatusline` in `win_config` --- lua/artio/view.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/artio/view.lua b/lua/artio/view.lua index bb99f3b..b287202 100644 --- a/lua/artio/view.lua +++ b/lua/artio/view.lua @@ -159,6 +159,11 @@ function View:win_config(win, hide, height) elseif vim.api.nvim_win_get_height(win) ~= height then vim.api.nvim_win_set_height(win, height) end + + if not hide and self.picker.win.hidestatusline then + height = 0 + end + if vim.o.cmdheight ~= height then -- Avoid moving the cursor with 'splitkeep' = "screen", and altering the user -- configured value with noautocmd. @@ -203,7 +208,6 @@ function View:setopts(restore) autocomplete = false, }, g = { - laststatus = self.picker.win.hidestatusline and 0 or nil, showmode = false, showcmd = false, }, -- 2.51.2