Skip to content

Commit 86bfdd5

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

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
@@ -227,7 +227,7 @@ function M:_create_containers()
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))
230-
local extra_height = total_height - available_height + SAFETY_MARGIN
230+
local extra_height = total_height - (available_height - SAFETY_MARGIN)
231231
chat_height = math.max(MIN_CHAT_HEIGHT, chat_height - extra_height)
232232
Utils.debug(string.format("Adjusted chat height from %d to %d", original_chat_height, chat_height))
233233
end

0 commit comments

Comments
 (0)