From c4ce24e3c047c3283652aeb9a16114603d6f705c Mon Sep 17 00:00:00 2001 From: soulfy Date: Sat, 12 Jul 2025 00:36:42 +0800 Subject: [PATCH] fix: result_container takes the actual height of the editor (#2405) --- lua/avante/sidebar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 248ff8a..0ee397f 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -3086,7 +3086,7 @@ function Sidebar:get_result_container_height() return math.max( 1, - api.nvim_win_get_height(self.code.winid) + api.nvim_get_option_value("lines", {}) - selected_files_container_height - selected_code_container_height - todos_container_height