From 64b8b03cca4ec716de7c8c7afe32100763d7a824 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 23 Oct 2025 23:49:50 -0400 Subject: [PATCH] fix var name --- lua/cp/ui/panel.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/cp/ui/panel.lua b/lua/cp/ui/panel.lua index 018579e..39afdae 100644 --- a/lua/cp/ui/panel.lua +++ b/lua/cp/ui/panel.lua @@ -228,8 +228,8 @@ function M.ensure_io_view() vim.cmd.vsplit() output_win = vim.api.nvim_get_current_win() - local config = config_module.get_config() - local width = math.floor(vim.o.columns * (config.ui.run.width or 0.3)) + local cfg = config_module.get_config() + local width = math.floor(vim.o.columns * (cfg.ui.run.width or 0.3)) vim.api.nvim_win_set_width(output_win, width) output_buf = utils.create_buffer_with_options() vim.api.nvim_win_set_buf(output_win, output_buf) @@ -247,7 +247,6 @@ function M.ensure_io_view() current_test_index = 1, }) - local cfg = config_module.get_config() if cfg.hooks and cfg.hooks.setup_io_output then pcall(cfg.hooks.setup_io_output, output_buf, state) end