Skip to content

Commit b05f641

Browse files
W3ND31Copilot
andauthored
Update lua/eca/sidebar.lua
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4ce1df3 commit b05f641

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/eca/sidebar.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function M:_create_containers()
223223
local total_height = chat_height + selected_code_height + todos_height + status_height + contexts_height + input_height + usage_height
224224

225225
-- Always calculate from total screen minus UI elements (more accurate than current window)
226-
local available_height = vim.o.lines - vim.o.cmdheight - UI_ELEMENTS_HEIGHT
226+
local available_height = vim.o.lines - UI_ELEMENTS_HEIGHT
227227

228228
if total_height > available_height then
229229
Utils.debug(string.format("Total height (%d) exceeds available height (%d), adjusting chat height", total_height, available_height))

0 commit comments

Comments
 (0)